body {
  margin: 0;
  background: #000021;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

decent-header {
  display: block;
  overflow-x: clip;
  position: relative;
  z-index: 1100;
}

.market-coin-flip { position:absolute; z-index:20; transform:translate(-50%,-50%); width:36px; height:36px;
  border:1px solid #7af0c688; border-radius:50%; color:#baffe2; background:#09192ef2; font:24px/1 system-ui,sans-serif; cursor:pointer; }
.market-coin-flip:focus-visible { outline:2px solid #a99aff; outline-offset:3px; }
.market-flight { position:absolute; inset:0; pointer-events:none; color:#effff9; font:12px/1.4 system-ui,sans-serif; }
.market-flight[hidden] { display:none !important; }
.market-flight [data-position] { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.market-flight-row { display:contents; }
.market-flight input { position:absolute; left:20px; top:39px; width:60px; height:12px; margin:0; accent-color:#7af0c6; pointer-events:auto; }
.market-flight button { position:absolute; width:22px; height:22px; padding:0; border:1px solid #7af0c677; border-radius:50%; color:#effff9; background:#123b38; cursor:pointer; pointer-events:auto; }
.market-flight [data-newer] { left:2px; top:18px; }
.market-flight [data-older] { right:2px; top:18px; }
.market-flight [data-reset] { left:39px; top:15px; }
.market-flight [data-in] { left:4px; top:53px; }
.market-flight [data-out] { right:4px; top:53px; }
.market-flight [data-overview] { left:39px; top:52px; }
.market-flight [hidden] { display:none !important; }
.market-flight button:disabled { opacity:.4; cursor:default; }
.market-flight :focus-visible { outline:2px solid #a99aff; outline-offset:2px; }
.market-footer-console { z-index:1001 !important; width:max-content; transform:translateX(-50%) scale(var(--footer-scale,1)) !important; transform-origin:bottom center; }

decent-canvas {
  display: block;
  width: 100%;
  height: calc(100dvh - var(--market-header-height,214px));
  margin-top: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  border-bottom: 2px solid #0ff;
}



/* Ensure left and right toolbars are inside the canvas area and don't overlap header/footer */
decent-left-toolbar,
decent-right-toolbar {
  position: fixed;
  top: var(--market-header-height,214px);
  bottom: 10px;
  z-index: 1000;
}

.market-sidepanel { position:fixed !important; top:calc(var(--market-header-height,214px) + 8px) !important; bottom:18px;
  transform:none !important; width:min(480px,calc(100vw - 112px)) !important; min-width:0 !important; max-width:480px !important;
  max-height:none !important; overflow:auto; box-sizing:border-box; background:#07111cf5; color:#effff9;
  border:1px solid #7af0c688; border-radius:12px; z-index:2000; font:14px/1.5 system-ui,sans-serif !important; }
.market-mint-panel { left:auto !important; right:56px; }
.market-filter-panel { left:56px; padding:16px; }
.market-filter-panel header { display:flex; align-items:center; justify-content:space-between; }
.market-sidepanel h2 { font-size:18px; margin:0; }
.market-sidepanel label { display:block; margin:12px 0; }
.market-sidepanel input:not([type=checkbox]), .market-sidepanel select { width:100%; box-sizing:border-box; padding:9px; background:#050c16; color:#effff9; border:1px solid #7af0c655; border-radius:6px; }
.market-sidepanel input[type=checkbox] { vertical-align:middle; }
.market-sidepanel button { color:#effff9; background:#123b38; padding:8px 12px; border:1px solid #7af0c688; border-radius:8px; cursor:pointer; }
.market-sidepanel button:disabled { opacity:.5; cursor:default; }
.market-sidepanel summary { cursor:pointer; color:#b6ffe3; padding:12px; font-weight:600; }
.market-mint-panel > details { border-bottom:1px solid #7af0c633; }
.market-sidepanel a { color:#8df8dc; }
.market-sidepanel :focus-visible { outline:2px solid #a99aff; outline-offset:3px; }
.supporter-studio-embed, .music-submission { padding:12px; overflow-wrap:anywhere; }
.supporter-studio-embed section { margin:12px 0; padding:10px; border:1px solid #7af0c633; border-radius:8px; }
.supporter-studio-embed pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.supporter-studio-embed .faces { display:flex; gap:8px; }
.supporter-studio-embed .faces img { width:calc(50% - 4px); object-fit:contain; }
.supporter-studio-embed [hidden] { display:none !important; }
.supporter-studio-embed [data-error=true] { color:#ffbdbd; }
.music-split-row { display:grid; grid-template-columns:minmax(0,1fr) 70px; gap:6px; margin:8px 0; }
.music-split-row button { grid-column:1 / -1; }
@media(max-width:600px) {
  .market-sidepanel { width:calc(100vw - 24px) !important; left:12px !important; right:12px !important; }
}

decent-foot {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border: none;
  box-shadow: none;
  background: #000021;
  z-index: 100;
}



#ipfsIconWrapper {
  position: absolute;
  left: 20px;
  top: 5px;
  text-align: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.hover-popup {
  display: none;
  position: absolute;
  top: 50px;
  left: 45px; /* moved closer to the IPFS icon */
  background: rgba(0, 0, 40, 0.95);
  color: white;
  padding: 8px;
  border: 1px solid #00e5ff;
  border-radius: 8px;
  font-size: 0.85rem;
  min-width: 180px;
  z-index: 9999 !important;
  box-shadow: 0 0 8px #00e5ff;
  white-space: nowrap;
  pointer-events: auto;
}

.snapshot-today {
  color: #00ff99;
  text-shadow: 0 0 6px #00ff99;
}

.snapshot-old {
  color: #00e5ff;
  text-shadow: 0 0 6px #f8fe8a;
}




@keyframes shimmer-spin-y {
  0% {
    transform: rotateY(0deg);
    filter: brightness(1);
  }
  50% {
    filter: brightness(2);
  }
  100% {
    transform: rotateY(360deg);
    filter: brightness(1);
  }
}

@keyframes shimmer-spin {
  0% {
    transform: rotate(0deg);
    filter: brightness(1);
  }
  50% {
    filter: brightness(2);
  }
  100% {
    transform: rotate(360deg);
    filter: brightness(1);
  }
}


#ipfs-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  width: 60px;
  height: 60px;
  border: 2px solid #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e5ff;
}
#ipfsIcon {
  display: block;
  width: 50px;
  height: 50px;
  opacity: 0.9;
  animation: shimmer-spin 8s linear infinite;
  filter: drop-shadow(0 0 10px #00e5ff);
  cursor: pointer;
}

#ipfs-status.ipfs-disconnected #ipfsIcon {
  animation: none;
  opacity: 0.6;
  filter: grayscale(80%) drop-shadow(0 0 4px #00e5ff);
}

#ipfs-status.ipfs-connected #ipfsIcon {
  animation: shimmer-spin 8s linear infinite;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px #00e5ff);
}




main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  margin: 0;
  margin-top: 120px;
  margin-bottom: 80px;
}

#landing-bg {
  width: auto;
  height: 80vh;
  object-fit: contain;
  opacity: 0.8;
  margin: 0;
  z-index: -1;
}

footer {
  display: none;
  justify-content: space-around;
  padding: 1rem;
  background-color: #000010;
  position: fixed;
  bottom: 0;
  width: 100%;
  opacity: 0.8;
  z-index: 10000;
}

.round-button {
  background: transparent;
  border: 2px solid #00e5ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 10px #00e5ff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.round-button:hover {
  box-shadow: 0 0 20px #00ffff;
  border-color: #00ffff;
}

.round-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Modal hidden helper */
.modal-hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
}

/* Modal overlay for modals with overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 40, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

/* General modal style for overlay modals */
.modal {
  background-color: rgba(0, 0, 50, 0.95);
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  color: #fff;
  box-shadow: 0 0 20px #00e5ff;
  position: relative;
  z-index: 100001;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#modal button[type="submit"] {
  margin-top: 1rem;
  background-color: #00e5ff;
  color: #000;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}



.round-button.active {
  box-shadow: 0 0 20px #00ffcc;
  border-color: #00ffcc;
}


decent-ui-layer decent-left-toolbar,
decent-ui-layer decent-right-toolbar {
  pointer-events: auto;
}