/* ============================================================================
   story-panel.css — Story panel, navigation, dev mode controls
   ============================================================================ */

/* ---- Story panel ------------------------------------------------------- */
.story-panel {
  position: absolute;
  top: 80px;
  right: 24px;
  width: 390px;
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: none;
  height: auto;
}
.story-panel.active { display: block; }

.story-panel-content {
  padding: 16px 24px 24px 24px;
  overflow-y: auto;
  max-height: 80vh;
}
.story-panel-content h2 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: rgb(128, 39, 108);
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  border-bottom: 2px solid rgb(128, 39, 108);
  padding-bottom: 8px;
}
.story-panel-content p {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}
.story-panel-content p:last-child { margin-bottom: 0; }

.close-panel {
  position: absolute;
  top: 2px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}
.close-panel:hover { background: rgba(0, 0, 0, 0.1); }

.story-panel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #f9f9f9;
}

.nav-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}
.nav-btn:hover    { background: #e0e0e0; color: #333; }
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.nav-counter {
  font-size: 13px;
  color: #666;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 500;
}
