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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0a07;
  cursor: crosshair;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#title {
  position: fixed;
  top: 20px;
  left: 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  user-select: none;
}

#hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  user-select: none;
  animation: fadeHint 6s ease-out forwards;
}

@keyframes fadeHint {
  0%, 60% { opacity: 1; }
  100% { opacity: 0; }
}

#pause-indicator {
  position: fixed;
  bottom: 20px;
  right: 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  user-select: none;
}

#stream-indicator {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255, 220, 180, 0.4);
  cursor: pointer;
  z-index: 11;
  transition: color 0.6s ease;
  user-select: none;
  padding: 8px 4px;
}

#stream-indicator:hover {
  color: rgba(255, 220, 180, 0.6);
}

#stream-indicator.pulse {
  animation: indicatorPulse 2s ease-out;
}

@keyframes indicatorPulse {
  0% { color: rgba(255, 200, 140, 0.7); }
  100% { color: rgba(255, 220, 180, 0.35); }
}

#poems-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 10;
  display: flex;
}

#poems-panel.visible {
  transform: translateX(0);
  pointer-events: auto;
}

#stream-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

#poems-edge {
  width: 50px;
  flex-shrink: 0;
  background: linear-gradient(to right, transparent, rgba(11, 10, 7, 0.85));
  cursor: pointer;
}

#poems-content {
  flex: 1;
  background: rgba(11, 10, 7, 0.88);
  padding: 60px 24px 40px 16px;
  display: flex;
  flex-direction: column;
}

#poems-header {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
  user-select: none;
  flex-shrink: 0;
}

#poems-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 40px;
}

#poems-list::-webkit-scrollbar {
  display: none;
}

.stream-crystal {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: streamFadeIn 1.5s ease-out forwards;
}

.stream-verse {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255, 220, 180, 0.7);
  margin-top: 4px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(4px);
  animation: verseFadeIn 2s ease-out forwards;
}

.stream-break {
  height: 24px;
  flex-shrink: 0;
}

@keyframes streamFadeIn {
  to { opacity: 1; }
}

@keyframes verseFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
