*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  overflow: hidden;
}

/* Story screen */
#story-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Arrow buttons */
#btn-back,
#btn-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  min-width: 4rem;
  min-height: 4rem;
  line-height: 1;
  touch-action: manipulation;
}

#btn-back {
  left: 1rem;
}
#btn-next {
  right: 1rem;
}

/* Slide counter */
#counter {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-family: sans-serif;
  pointer-events: none;
}

/* Audio indicator */
#audio-indicator[hidden] {
  display: none;
}

#audio-indicator {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2rem;
  padding: 0.3rem 0.6rem 0.3rem 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
}

#audio-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  line-height: 1;
}

#audio-position {
  font-family: sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  min-width: 2ch;
}

#btn-audio-next {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.1rem;
  line-height: 1;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  padding: 0;
}

#btn-audio-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes audio-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

#audio-indicator.playing #audio-icon {
  animation: audio-pulse 1.2s ease-in-out infinite;
}

/* About screen */
#about-screen {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a2e;
  padding: 2rem;
  overflow-y: auto;
}

#about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 480px;
  width: 100%;
  text-align: left;
}

#about-content h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: #f0e6c8;
  letter-spacing: 0.05em;
}

#about-content p {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #c8b99a;
}

#about-content p:last-of-type {
  font-size: 1rem;
  color: #8a7a60;
  font-style: italic;
}

#about-content a {
  color: #e8b86d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#btn-restart {
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: #1a1a2e;
  background: #e8b86d;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(232, 184, 109, 0.3);
  transition:
    background 0.2s,
    transform 0.1s;
}

#btn-restart:hover {
  background: #f0c97a;
}

#btn-restart:active {
  transform: scale(0.97);
}
