* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; background: #000; }

canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
}

h1 {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  color: #fff;
  white-space: nowrap;
  z-index: 10;
}

h2 {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  color: #fff;
  white-space: nowrap;
  z-index: 10;
  opacity: 0.6;
}

#artwork-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

img#artwork {
  display: block;
  max-width: 40vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  cursor: pointer;
}

#panel {
  position: fixed;
  z-index: 20;
  background: rgba(0, 0, 0, 0.75);
  overflow-y: auto;
  transition: transform 0.6s ease;
}

@media (orientation: landscape) {
  #panel {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 60vw;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  #panel.open {
    transform: translate(-50%, 0);
  }
}

@media (orientation: portrait) {
  img#artwork {
    max-width: 80vw;
    max-height: 50vh;
  }
  #panel {
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60vh;
    transform: translateY(100%);
  }
  #panel.open {
    transform: translateY(0);
  }
}

#panel-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: monospace;
  color: #fff;
  min-height: 100%;
}

#meta-title {
  font-size: 1rem;
  letter-spacing: 0.15em;
  font-weight: bold;
}

#meta-description {
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

#meta-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#meta-date,
#meta-creator,
#meta-jobtitle {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

#nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5rem;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.nav-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

#menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: transparent;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#menu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-option {
  pointer-events: none;
  width: 100%;
  max-width: 400px;
  flex: 1;
  max-height: 200px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-option:hover {
  background: #f0f0f0;
}

#menu.open .menu-option {
  pointer-events: all;
}
