:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #23232b;
  font-family: "Inter", Arial, sans-serif;
  min-height: 100vh;
  color: #e6e6ff;
}

#app {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.layout {
  display: flex;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}

.logbook {
  width: 240px;
  max-width: 30vw;
  padding: 16px 12px;
  background: rgba(30, 30, 40, 0.95);
  border: 3px solid #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 850px;
  overflow-y: auto;
}

.logbook ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage {
  position: relative;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 1200 / 850;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
}

.stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 100%;
  pointer-events: none;
}

.stage img.background-back {
  z-index: 1;
}

.stage img.background-fore {
  z-index: 3;
}

.liquid-layer {
  position: absolute;
  left: 50%;
  width: 80%;
  transform: translateX(-50%);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  border-radius: 4px;
  overflow: hidden;
  z-index: 2;
}

.liquid-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}

.liquid-label:hover {
  text-decoration: underline;
}

.artist-tag {
  position: absolute;
  top: 80px;
  right: 100px;
  width: 150px;
  height: 100px;
  transform: rotate(51deg);
  z-index: 4;
}

.artist-tag a {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.home-link {
  width: 220px;
  display: flex;
  justify-content: flex-start;
}

.home-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.home-link a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #1f1f29;
}

.log-new {
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #f6f6ff, #ececff, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 3px #fff6);
}

footer {
  font-size: 0.75rem;
  text-align: center;
  color: #b3b3c3;
}

footer a {
  color: inherit;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .logbook,
  .home-link {
    width: 100%;
    max-width: none;
  }

  .home-link {
    justify-content: center;
  }

  .stage {
    width: 100%;
  }

  .artist-tag {
    display: none;
  }
}
