/* =============================================
   AVENTURA - Main Stylesheet
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #8e44ad;
  --color-primary-light: #a855f7;
  --color-primary-dark: #6b21a8;
  --color-secondary: #3498db;
  --color-secondary-light: #60a5fa;
  --color-accent: #f39c12;
  --color-accent-light: #fbbf24;
  --color-success: #27ae60;
  --color-error: #e74c3c;
  --color-bg: #0f0a1e;
  --color-bg-light: #1a1333;
  --color-surface: #231b3a;
  --color-surface-light: #2d2348;
  --color-text: #f0e6ff;
  --color-text-muted: #a89bc2;
  --color-gold: #ffd700;
  --color-pink: #fd79a8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(142, 68, 173, 0.4);

  --font-main: 'Segoe UI', 'Noto Color Emoji', system-ui, sans-serif;
  --font-story: 'Georgia', 'Noto Color Emoji', serif;

  --transition-fast: 200ms ease;
  --transition-normal: 400ms ease;
  --transition-slow: 600ms ease;

  --header-height: 48px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- Screens --- */
.screen {
  display: none;
  width: 100%;
  height: 100%;
}

.screen.active {
  display: flex;
}

/* =============================================
   SCREEN 1: CONNECTION
   ============================================= */
.connect-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
  gap: 24px;
}

.connect-header {
  text-align: center;
}

.app-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.2;
}

.title-icon {
  -webkit-text-fill-color: initial;
  font-size: 2.4rem;
}

.app-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: 4px;
}

/* Camera preview */
.camera-preview-wrapper {
  position: relative;
  width: 280px;
  height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 2px solid var(--color-surface-light);
}

.camera-preview-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.camera-placeholder span {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.camera-placeholder.hidden {
  display: none;
}

/* Connection options */
.connect-options {
  width: 100%;
}

.connect-choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.connect-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.connect-divider::before,
.connect-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-surface-light);
}

/* Connect panels */
.connect-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.connect-panel h2 {
  font-size: 1.3rem;
  color: var(--color-text);
}

.room-code-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-accent);
}

.room-code-display span {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 6px;
  font-family: 'Courier New', monospace;
  color: var(--color-accent);
}

.room-code-hint {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.waiting-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.room-code-input-wrapper {
  display: flex;
  gap: 8px;
}

.room-code-input {
  width: 160px;
  padding: 12px 16px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  background: var(--color-surface);
  border: 2px solid var(--color-surface-light);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: 'Courier New', monospace;
  outline: none;
  transition: border-color var(--transition-fast);
}

.room-code-input:focus {
  border-color: var(--color-primary-light);
}

.join-status {
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.join-status.error {
  color: var(--color-error);
  background: rgba(231, 76, 60, 0.1);
}

.join-status.success {
  color: var(--color-success);
  background: rgba(39, 174, 96, 0.1);
}

.connect-error {
  text-align: center;
  color: var(--color-error);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  box-shadow: var(--shadow-md), 0 0 30px rgba(142, 68, 173, 0.5);
}

.btn-secondary {
  background: var(--color-surface-light);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-primary-light);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
  width: 100%;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-icon:hover {
  background: var(--color-surface-light);
}

.btn-icon.muted {
  opacity: 0.5;
}

.btn-text {
  background: transparent;
  color: var(--color-text-muted);
  padding: 8px 16px;
}

.btn-text:hover {
  color: var(--color-text);
}

.btn-icon-label {
  font-size: 1.3rem;
}

.hidden {
  display: none !important;
}

/* --- Spinner --- */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--color-surface-light);
  border-top-color: var(--color-primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.large {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   SCREEN 2: STORY MENU
   ============================================= */
.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 32px;
  overflow-y: auto;
}

.menu-header {
  text-align: center;
  margin-bottom: 32px;
}

.menu-header h1 {
  font-size: 2rem;
  color: var(--color-text);
}

.menu-connection-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  justify-content: center;
}

.connection-badge {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--color-surface);
}

.connection-badge.connected {
  color: var(--color-success);
}

.room-badge {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

/* Story grid */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.story-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(52, 152, 219, 0.1));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.story-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.story-card:hover::before {
  opacity: 1;
}

.story-card-cover {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.story-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.story-card-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

.story-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.story-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--color-surface-light);
  color: var(--color-text-muted);
}

/* =============================================
   SCREEN 3: GAME
   ============================================= */

/* Game header */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 12px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-surface-light);
  flex-shrink: 0;
}

.game-header-left,
.game-header-center,
.game-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Split layout - story takes full width, video floats */
.game-split {
  position: relative;
  height: calc(100% - var(--header-height));
  overflow: hidden;
}

/* Video panel - always floating overlay */
.video-panel {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  left: 10px;
  width: 180px;
  height: 135px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  z-index: 50;
  border: 2px solid var(--color-surface-light);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  cursor: grab;
}

.video-panel:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.video-remote-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-remote-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-text-muted);
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
}

.video-placeholder span {
  font-size: 2rem;
  margin-bottom: 4px;
}

.video-placeholder p {
  font-size: 0.7rem;
}

.video-placeholder.hidden {
  display: none;
}

.video-local-wrapper {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 55px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-surface-light);
  z-index: 10;
}

.video-local-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.connection-status {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.6);
  font-size: 0.65rem;
  z-index: 10;
}

.connection-status .status-text {
  display: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.connection-status.disconnected .status-dot {
  background: var(--color-error);
}

/* Story panel */
.story-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--color-bg-light);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}

.story-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-surface-light);
  flex-shrink: 0;
  gap: 8px;
}

.story-page-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold);
  flex: 1;
}

.page-progress {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.btn-back-page {
  background: none;
  border: 2px solid var(--color-surface-light);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1.1rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-back-page:hover {
  border-color: var(--color-primary-light);
  background: var(--color-surface-light);
}

.btn-back-page.hidden {
  display: none;
}

/* Illustration */
.illustration-container {
  height: 200px;
  min-height: 180px;
  max-height: 240px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Story text */
.story-text-container {
  padding: 20px 24px;
  position: relative;
}

.story-text {
  font-family: var(--font-story);
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text);
  animation: fadeIn var(--transition-normal);
}

.speaker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--color-surface);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.speaker-emoji {
  font-size: 1.2rem;
}

.speaker-name {
  font-weight: 600;
  color: var(--color-accent);
}

/* Choices */
.choices-container {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: var(--color-surface);
  border: 2px solid var(--color-surface-light);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  animation: slideUp var(--transition-normal) both;
}

.choice-btn:nth-child(1) { animation-delay: 0.1s; }
.choice-btn:nth-child(2) { animation-delay: 0.2s; }
.choice-btn:nth-child(3) { animation-delay: 0.3s; }
.choice-btn:nth-child(4) { animation-delay: 0.4s; }

.choice-btn:hover {
  border-color: var(--color-primary-light);
  background: var(--color-surface-light);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.choice-btn:active {
  transform: translateX(6px) scale(0.98);
}

.choice-btn .choice-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.choice-btn .choice-text {
  flex: 1;
}

/* Puzzle */
.puzzle-container {
  padding: 16px 24px 24px;
}

.puzzle-question {
  font-family: var(--font-story);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}

.puzzle-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.puzzle-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: var(--color-surface);
  border: 2px solid var(--color-surface-light);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.puzzle-option:hover {
  border-color: var(--color-secondary-light);
  background: var(--color-surface-light);
}

.puzzle-option.correct {
  border-color: var(--color-success);
  background: rgba(39, 174, 96, 0.15);
  animation: pulse 0.5s ease;
}

.puzzle-option.incorrect {
  border-color: var(--color-error);
  background: rgba(231, 76, 60, 0.1);
  animation: shake 0.4s ease;
}

.puzzle-option.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.puzzle-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 500;
  animation: fadeIn var(--transition-fast);
}

.puzzle-feedback.success {
  background: rgba(39, 174, 96, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.puzzle-feedback.fail {
  background: rgba(231, 76, 60, 0.1);
  color: #f5a0a0;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Ending overlay */
.ending-overlay {
  flex: 1;
  background: rgba(15, 10, 30, 0.95);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 20;
  animation: fadeIn var(--transition-slow);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ending-content {
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 500px;
  margin: auto;
}

.ending-content .ending-rank {
  font-size: 4rem;
  margin-bottom: 16px;
}

.ending-content .ending-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.ending-content .ending-text {
  font-family: var(--font-story);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
}

.ending-content .ending-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   OVERLAYS
   ============================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 30, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
  font-size: 1.1rem;
}

.reconnect-attempt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.reconnect-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.reconnect-buttons.hidden {
  display: none;
}

/* =============================================
   CONFETTI
   ============================================= */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall var(--fall-duration, 3s) linear forwards;
  opacity: 0;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* =============================================
   SCROLL INDICATOR ARROW
   ============================================= */
.scroll-arrow {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
  background: linear-gradient(transparent, var(--color-bg-light) 40%);
  z-index: 15;
  pointer-events: none;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

.scroll-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 1.8rem;
  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-md), 0 0 20px rgba(142, 68, 173, 0.5);
  pointer-events: auto;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.scroll-arrow-btn:active {
  transform: scale(0.9);
}

.scroll-arrow.hidden {
  display: none;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .video-panel {
    width: 140px;
    height: 105px;
  }

  .video-local-wrapper {
    display: none;
  }

  .illustration-container {
    height: 160px;
    min-height: 130px;
    max-height: 160px;
  }
}

@media (max-width: 600px) {
  .video-panel {
    width: 110px;
    height: 85px;
  }
  .app-title {
    font-size: 2.2rem;
  }

  .camera-preview-wrapper {
    width: 220px;
    height: 165px;
  }

  .story-text {
    font-size: 1.05rem;
  }

  .choice-btn {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .illustration-container {
    height: 130px;
    min-height: 110px;
    max-height: 130px;
  }
}

/* --- Scrollbar styling --- */
.story-panel::-webkit-scrollbar {
  width: 6px;
}

.story-panel::-webkit-scrollbar-track {
  background: transparent;
}

.story-panel::-webkit-scrollbar-thumb {
  background: var(--color-surface-light);
  border-radius: 3px;
}

.story-panel::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
