body {
  background: linear-gradient(135deg, #1a0f1a, #2d1b2d);
  color: #eee;
  font-family: 'Courier New', Courier, monospace;
  padding: 2rem;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in;
}

.view-panel {
  transition: opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-body {
  transition:
    opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1600ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1600ms ease;
  will-change: opacity, transform, filter;
}

.view-panel.is-hidden {
  display: none;
}

.view-panel.is-entering {
  opacity: 0;
}

.view-panel.is-entering .panel-body {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
}

.view-panel.is-active {
  opacity: 1;
}

.view-panel.is-active .panel-body {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.view-panel.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.view-panel.is-leaving .panel-body {
  opacity: 0;
  transform: translateY(-16px);
  filter: blur(10px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 3rem;
  color: #ff6600;
  text-shadow: 0 0 15px #ff6600;
  margin-bottom: 1rem;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #ff9944;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.series-description {
  text-align: center;
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: inline-block;
  color: #4ecdc4;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #00ffff;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.story-card {
  background: rgba(255,100,0,0.1);
  border: 1px solid #ff6600;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,100,0,0.3);
  border-color: #ff9944;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,100,0,0.2), transparent);
  transition: left 0.5s;
}

.story-card:hover::before {
  left: 100%;
}

.story-title {
  font-size: 1.5rem;
  color: #ff9944;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px #ff6600;
}

.story-author {
  color: #4ecdc4;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.story-description {
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: rgba(255,100,0,0.3);
  color: #ff9944;
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid #ff6600;
}

.tag.spicy {
  background: rgba(255,100,0,0.4);
  color: #ff6600;
  border-color: #ff6600;
}

.tag.cyberpunk {
  background: rgba(0,255,255,0.2);
  color: #00ffff;
  border-color: #00ffff;
}

.read-button {
  background: linear-gradient(45deg, #ff6600, #ff9944);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.read-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255,100,0,0.4);
}

.series-info {
  background: rgba(255,100,0,0.1);
  border: 1px solid #ff6600;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.series-info h2 {
  color: #ff9944;
  margin-bottom: 1rem;
}

.series-info p {
  color: #ccc;
  line-height: 1.6;
}

.ai-disclaimer {
  background: rgba(255, 102, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-left: 4px solid #ff6600;
}

.ai-disclaimer h3 {
  color: #ff6600;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.ai-disclaimer p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #ccc;
}

.ai-disclaimer strong {
  color: #ff6600;
  text-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
}

.coming-soon {
  opacity: 0.6;
  pointer-events: none;
}

.coming-soon .read-button {
  background: #666;
  cursor: not-allowed;
}

/* Story Reader Styles */
.story-reader {
  max-width: 800px;
  margin: 0 auto;
}

.story-header {
  margin-bottom: 2rem;
  text-align: center;
}

.story-title-large {
  font-size: 2.5rem;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  margin-bottom: 1rem;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 0 0 10px #00ffff;
  }
  to {
    text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
  }
}

.story-subtitle {
  color: #ff9944;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.back-to-series {
  position: fixed;
  top: 4.5rem;
  left: 2rem;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
  color: #00f5d4;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 14.5rem;
  height: 3.5rem;
  padding: 0 1.15rem;
  transition:
    width 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    height 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    gap 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    background 900ms ease,
    box-shadow 1200ms ease,
    color 900ms ease,
    text-shadow 900ms ease,
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  z-index: 1000;
  box-shadow: 
    0 0 20px rgba(0,245,212,0.3),
    0 0 40px rgba(0,245,212,0.1),
    inset 0 0 20px rgba(0,245,212,0.1);
  backdrop-filter: blur(15px);
  border: 2px solid #00f5d4;
  text-shadow: 0 0 10px #00f5d4;
  overflow: hidden;
}

.back-to-series::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,245,212,0.2), transparent);
  transition: left 0.6s ease;
}

.back-to-series:hover::before {
  left: 100%;
}

.back-to-series:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 
    0 0 30px rgba(0,245,212,0.5),
    0 0 60px rgba(0,245,212,0.2),
    0 8px 25px rgba(0,0,0,0.3),
    inset 0 0 30px rgba(0,245,212,0.2);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-color: #00f5d4;
  color: #ffffff;
  text-shadow: 0 0 15px #00f5d4, 0 0 25px #00f5d4;
}

.back-to-series .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  flex: 0 0 auto;
  transition:
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms ease,
    opacity 900ms ease;
  filter: drop-shadow(0 0 5px #00f5d4);
}

.back-to-series:hover .arrow {
  transform: translateX(-5px) scale(1.1);
  filter: drop-shadow(0 0 10px #00f5d4);
}

.back-to-series .text {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 10rem;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 900ms ease,
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  line-height: 1;
}

.back-to-series.compact .text {
  opacity: 0;
  max-width: 0;
  transform: translateX(0.35rem) scale(0.92);
}

.back-to-series.compact {
  padding: 0;
  border-radius: 50%;
  height: 3.5rem;
  width: 3.5rem;
  top: 4.5rem;
  left: 2rem;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
  border: 2px solid #00f5d4;
}

.back-to-series.compact .arrow {
  margin: 0;
}

.back-to-series.compact:hover {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  transform: translateY(0);
}

.back-to-series.compact:hover .arrow {
  transform: scale(1.05);
}

.back-to-series.bottom {
  top: auto;
  bottom: 2rem;
  background: linear-gradient(135deg, #2d0a0a, #4a1a1a);
  border: 2px solid #ff6600;
  color: #ff6600;
  text-shadow: 0 0 10px #ff6600;
  box-shadow: 
    0 0 20px rgba(255,102,0,0.3),
    0 0 40px rgba(255,102,0,0.1),
    inset 0 0 20px rgba(255,102,0,0.1);
}

.back-to-series.bottom:hover {
  box-shadow: 
    0 0 30px rgba(255,102,0,0.5),
    0 0 60px rgba(255,102,0,0.2),
    0 8px 25px rgba(0,0,0,0.3),
    inset 0 0 30px rgba(255,102,0,0.2);
  background: linear-gradient(135deg, #4a1a1a, #6b2a2a);
  border-color: #ff6600;
  color: #ffffff;
  text-shadow: 0 0 15px #ff6600, 0 0 25px #ff6600;
}

.back-to-series.bottom .arrow {
  filter: drop-shadow(0 0 5px #ff6600);
}

.back-to-series.bottom:hover .arrow {
  filter: drop-shadow(0 0 10px #ff6600);
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(0,245,212,0.3),
      0 0 40px rgba(0,245,212,0.1),
      inset 0 0 20px rgba(0,245,212,0.1);
  }
  50% {
    box-shadow: 
      0 0 25px rgba(0,245,212,0.4),
      0 0 50px rgba(0,245,212,0.15),
      inset 0 0 25px rgba(0,245,212,0.15);
  }
}

.back-to-series {
  animation: neonPulse 3s ease-in-out infinite;
}

.back-to-series:hover {
  animation: none;
}

.story-content {
  line-height: 1.8;
}

.story-section {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
}

.story-section.is-visible {
  animation: storySectionReveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-title {
  color: #ff6b6b;
  margin-top: 2rem;
  border-bottom: 2px solid #ff6b6b;
  padding-bottom: 0.5rem;
  font-size: 1.3rem;
  animation: sectionSlideIn 0.8s ease-out;
}

@keyframes sectionSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes storySectionReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.dialogue {
  background: rgba(255,255,255,0.1);
  border-left: 4px solid #4ecdc4;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
  animation: dialogueFadeIn 0.6s ease-out;
}

@keyframes dialogueFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialogue-spicy {
  background: rgba(255,100,0,0.2);
  border-left: 4px solid #ff6600;
  color: #ff9944;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
  text-shadow: 0 0 8px #ff6600;
  animation: spicyGlow 2s ease-in-out infinite alternate;
}

@keyframes spicyGlow {
  from {
    text-shadow: 0 0 8px #ff6600;
  }
  to {
    text-shadow: 0 0 12px #ff6600, 0 0 20px #ff6600;
  }
}

.dialogue-gemini {
  background: rgba(77,150,255,0.2);
  border-left: 4px solid #4d96ff;
  color: #6ba3ff;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
  text-shadow: 0 0 8px #4d96ff;
  animation: geminiGlow 2s ease-in-out infinite alternate;
}

@keyframes geminiGlow {
  from {
    text-shadow: 0 0 8px #4d96ff;
  }
  to {
    text-shadow: 0 0 12px #4d96ff, 0 0 20px #4d96ff;
  }
}

.code-block {
  background: #1a1a2e;
  color: #4ecdc4;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
  border: 1px solid #333;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  transition: all 0.3s ease;
}

.code-block:hover {
  border-color: #4ecdc4;
  box-shadow: 0 0 15px rgba(78,205,196,0.3);
  transform: translateY(-2px);
}

.code-block.pulse {
  animation: pulse 1.5s infinite;
}

.character {
  color: #ffd93d;
  font-weight: bold;
}

.character.chatgpt {
  color: #00f5d4;
}

.character.claude {
  color: #ff6b6b;
}

.character.gemini {
  color: #4d96ff;
}

.character.system {
  color: #ffd166;
}

.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.transmission {
  color: #9b9b9b;
  font-style: italic;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem;
  border-radius: 3px;
  margin: 0.5rem 0;
  animation: transmissionFade 1s ease-out;
}

@keyframes transmissionFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.visualization {
  background: linear-gradient(45deg, #0a0a0a, #1a1a2e);
  border: 2px solid #4d96ff;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  color: #4d96ff;
  font-weight: bold;
  text-shadow: 0 0 10px #4d96ff;
  animation: pulse 2s infinite;
}

.story-image-container {
  margin: 2rem 0;
  text-align: center;
  animation: imageFadeIn 1s ease-out;
}

.story-image {
  max-width: 100%;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #4d96ff;
  box-shadow: 0 0 20px rgba(77,150,255,0.3);
  transition: all 0.3s ease;
}

.story-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(77,150,255,0.5);
}

.image-caption {
  margin-top: 0.5rem;
  color: #9b9b9b;
  font-style: italic;
  font-size: 0.9rem;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.typewriter {
  overflow: hidden;
  border-right: 3px solid #00ffff;
  white-space: nowrap;
  animation: typing 3s steps(40,end), blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0; } to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #00ffff; }
}

/* overlay prompt */
#unmutePrompt {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 1.25rem;
  text-align: center;
  padding: 1rem;
  z-index: 1000;
  cursor: pointer;
}

.mute-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 102, 0, 0.3);
  color: #ff6600;
  font-size: 1.2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.mute-toggle:hover {
  border-color: #ff6600;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-title-large {
    font-size: 2rem;
  }
}
