/* Portfolio Management Phase Styles - Phase 11 Implementation */

/* Legacy full-screen transition (deprecated) */
#portfolio-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Phase 11: New popup-based portfolio transition */
.portfolio-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.portfolio-transition-popup {
  background: #18181b;
  border: 3px solid #00ffea;
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  box-shadow: 0 0 30px #00ffea44;
  animation: portfolioPopupSlideIn 0.5s ease-out;
}

@keyframes portfolioPopupSlideIn {
  0% {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ============================================================
   CINEMATIC PORTFOLIO ANNOUNCEMENT
   ============================================================ */

.pm-cinematic-overlay {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 234, 0.15) 0%,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.95) 100%
  );
  backdrop-filter: blur(8px);
}

.pm-cinematic-announcement {
  background: linear-gradient(
    135deg,
    rgba(10, 25, 47, 0.95) 0%,
    rgba(18, 18, 27, 0.98) 50%,
    rgba(22, 33, 62, 0.95) 100%
  );
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  max-width: 600px;
  width: 90vw;
  max-height: 92vh !important;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 255, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cinematicEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pm-cinematic-announcement::-webkit-scrollbar {
  display: none;
}

.pm-cinematic-announcement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 234, 0.5) 50%,
    transparent 100%
  );
}

.pm-cinematic-announcement::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    #00ffea,
    #00ff88,
    #00ffea
  );
  border-radius: 14px;
  z-index: -1;
  opacity: 0.6;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes cinematicEntrance {
  0% {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  60% {
    transform: scale(1.02) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.pm-cinematic-content {
  padding: 2rem 2rem 1.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.pm-cinematic-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(0, 255, 234, 0.2), rgba(0, 255, 136, 0.2));
  border: 1px solid rgba(0, 255, 234, 0.5);
  border-radius: 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  letter-spacing: 3px;
  color: #00ffea;
  text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
  margin-bottom: 1rem;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.6);
  }
}

.pm-cinematic-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 2rem;
  background: linear-gradient(135deg, #00ffea 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem;
  letter-spacing: 2px;
  line-height: 1.3;
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.pm-cinematic-subtitle {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1rem;
  letter-spacing: 4px;
}

.pm-cinematic-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #00ffea,
    transparent
  );
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.pm-cinematic-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  font-weight: 300;
}

.pm-cinematic-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 255, 234, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 234, 0.1);
}

.pm-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pm-stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.3rem;
  color: #00ffea;
  text-shadow: 0 0 15px rgba(0, 255, 234, 0.6);
  animation: statValueFadeIn 0.6s ease-out backwards;
}

.pm-stat-item:nth-child(1) .pm-stat-value { animation-delay: 0.2s; }
.pm-stat-item:nth-child(2) .pm-stat-value { animation-delay: 0.3s; }
.pm-stat-item:nth-child(3) .pm-stat-value { animation-delay: 0.4s; }
.pm-stat-item:nth-child(4) .pm-stat-value { animation-delay: 0.5s; }

@keyframes statValueFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pm-stat-label {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pm-continue-btn {
  display: block;
  width: 100%;
  margin: 1.5rem auto 0;
  padding: 0.85rem 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0a0a1a;
  background: linear-gradient(135deg, #00ffea 0%, #00ff88 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 16px rgba(0, 255, 234, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.pm-continue-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(0, 255, 234, 0.6), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pm-continue-btn:active {
  transform: scale(0.97);
}

.pm-auto-progress {
  width: 100%;
  height: 4px;
  background: rgba(0, 255, 234, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.pm-auto-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    #00ffea 0%,
    #00ff88 50%,
    #00ffea 100%
  );
  background-size: 200% 100%;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 234, 0.6);
  animation:
    progressFill 6s linear forwards,
    progressShimmer 1.5s linear infinite;
}

@keyframes progressFill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes progressShimmer {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 200% 0%;
  }
}

/* ============================================================
   RESPONSIVE: CINEMATIC ANNOUNCEMENT
   ============================================================ */

@media (max-width: 768px) {
  .pm-cinematic-title {
    font-size: 1.5rem;
  }

  .pm-cinematic-subtitle {
    font-size: 1.1rem;
  }

  .pm-cinematic-desc {
    font-size: 0.95rem;
  }

  .pm-cinematic-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .pm-stat-value {
    font-size: 1.1rem;
  }

  .pm-continue-btn {
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .pm-cinematic-content {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .pm-cinematic-badge {
    font-size: 0.4rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.75rem;
  }

  .pm-cinematic-title {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .pm-cinematic-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .pm-cinematic-desc {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .pm-cinematic-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.7rem;
  }

  .pm-stat-value {
    font-size: 0.9rem;
  }

  .pm-stat-label {
    font-size: 0.75rem;
  }

  .pm-continue-btn {
    font-size: 0.7rem;
    padding: 0.7rem 1.25rem;
    margin-top: 1rem;
  }

  .pm-auto-progress {
    margin-top: 1rem;
  }

  .pm-stat-label {
    font-size: 0.75rem;
  }
}

.portfolio-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 255, 234, 0.05);
  border: 1px solid rgba(0, 255, 234, 0.2);
  border-radius: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 255, 234, 0.1);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: #aaa;
}

.stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: #00ffea;
  text-shadow: 0 0 8px #00ffea;
}

.begin-portfolio-btn {
  background: linear-gradient(45deg, #00ffea, #44ff44);
  border: none;
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  cursor: pointer;
}

.begin-portfolio-btn:hover {
  background: linear-gradient(45deg, #44ff44, #00ffea);
  box-shadow: 0 0 20px #00ffea;
  transform: scale(1.05);
}

.portfolio-transition-content {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 255, 234, 0.1);
  border: 2px solid #00ffea;
  border-radius: 10px;
  box-shadow: 0 0 30px #00ffea44;
}

.portfolio-transition-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 2rem;
  color: #00ffea;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #00ffea;
}

.portfolio-transition-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 2rem;
}

.portfolio-transition-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
}

.portfolio-continue-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  background: #00ffea;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-continue-btn:hover {
  background: #44ff44;
  box-shadow: 0 0 20px #44ff44;
}

/* Portfolio Event Popup Styles */
.portfolio-event-overlay {
  background: rgba(0, 0, 0, 0.9);
}

.portfolio-event-popup {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 3px solid #00ffea;
  border-radius: 10px;
  padding: 2rem;
  position: relative;
}

.portfolio-event-title {
  font-size: 1.4rem;
  color: #00ffea;
  margin-bottom: 1rem;
  text-align: center;
}

.portfolio-event-company {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  color: #44ff44;
  text-align: center;
  margin-bottom: 1.5rem;
}

.portfolio-event-description {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 2rem;
  text-align: center;
}

.portfolio-event-impact {
  background: rgba(0, 255, 234, 0.1);
  border: 1px solid #00ffea;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.impact-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
}

.impact-row:last-child {
  margin-bottom: 0;
}

.portfolio-event-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.portfolio-action-btn {
  padding: 0.8rem 1.5rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  background: #23232b;
  color: #fff;
  border: 2px solid #00ffea;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.portfolio-action-btn:hover {
  background: #00ffea;
  color: #000;
  box-shadow: 0 0 15px #00ffea;
}

.portfolio-action-btn.pass-btn {
  border-color: #ff4444;
  color: #ff4444;
}

.portfolio-action-btn.pass-btn:hover {
  background: #ff4444;
  color: #000;
  box-shadow: 0 0 15px #ff4444;
}

.portfolio-action-btn.maintain-btn {
  border-color: #ffaa00;
  color: #ffaa00;
}

.portfolio-action-btn.maintain-btn:hover {
  background: #ffaa00;
  color: #000;
  box-shadow: 0 0 15px #ffaa00;
}

.portfolio-action-btn.double-btn {
  border-color: #44ff44;
  color: #44ff44;
}

.portfolio-action-btn.double-btn:hover {
  background: #44ff44;
  color: #000;
  box-shadow: 0 0 15px #44ff44;
}

.portfolio-result-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #00ffea;
  border-radius: 10px;
  padding: 2rem;
  z-index: 1001;
  max-width: 400px;
  width: 90%;
}

.result-content {
  text-align: center;
}

.result-content h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #00ffea;
  margin-bottom: 1rem;
}

.result-content p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .portfolio-transition-title {
    font-size: 1.4rem;
  }
  
  /* Phase 11: Mobile adjustments for new popup transition */
  .portfolio-transition-popup {
    width: 95vw;
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .portfolio-stats-grid {
    margin: 1rem 0;
    padding: 0.8rem;
  }
  
  .stat-label,
  .stat-value {
    font-size: 0.9rem;
  }
  
  .begin-portfolio-btn {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
  
  .portfolio-event-popup {
    width: 95%;
    padding: 1.5rem;
  }
  
  .portfolio-event-buttons {
    flex-direction: column;
  }
  
  .portfolio-action-btn {
    width: 100%;
    padding: 1rem;
  }
}

/* ==============================================================================
   PHASE 12: FOLLOW-ON INVESTMENT UI STYLES
   ============================================================================== */

/* Follow-on event popup overlay */
.followon-event-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(2px);
}

/* Main follow-on popup container */
.followon-event-popup {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 3px solid #44ff44;
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  box-shadow: 0 0 30px #44ff4466;
  animation: followOnSlideIn 0.6s ease-out;
}

@keyframes followOnSlideIn {
  0% {
    transform: scale(0.9) translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Follow-on popup header */
.followon-title {
  font-size: 1.3rem;
  color: #44ff44;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 10px #44ff44;
}

.followon-company-info {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(68, 255, 68, 0.1);
  border: 1px solid rgba(68, 255, 68, 0.3);
  border-radius: 8px;
}

.company-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.funding-stage {
  font-size: 1.1rem;
  color: #44ff44;
  text-shadow: 0 0 8px #44ff44;
}

/* Follow-on description */
.followon-description {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid #00ffea;
}

/* Follow-on details sections */
.followon-details {
  margin-bottom: 2rem;
}

.detail-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 255, 234, 0.05);
  border: 1px solid rgba(0, 255, 234, 0.2);
  border-radius: 8px;
}

.detail-section h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: #00ffea;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: 0 0 8px #00ffea;
}

.detail-grid,
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.detail-item,
.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid #44ff44;
}

.detail-label,
.option-label {
  font-size: 0.9rem;
  color: #aaa;
  flex: 1;
}

.detail-value,
.option-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: #fff;
  text-align: right;
  flex: 0 0 auto;
}

.option-desc {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.2rem;
  text-align: right;
}

/* Competition section styling */
.competition-section {
  border-color: #ffaa00;
  background: rgba(255, 170, 0, 0.05);
}

.competition-section h4 {
  color: #ffaa00;
  text-shadow: 0 0 8px #ffaa00;
}

.competition-info {
  font-size: 0.9rem;
  line-height: 1.4;
}

.lead-vc {
  font-weight: bold;
  color: #ffaa00;
  margin-bottom: 0.3rem;
}

.rival-vcs {
  color: #ccc;
  margin-bottom: 0.3rem;
}

.competition-level {
  color: #ff6666;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.player-advantage {
  color: #44ff44;
  font-weight: bold;
  text-shadow: 0 0 4px #44ff44;
}

/* Follow-on action buttons */
.followon-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.followon-btn {
  padding: 1rem 0.8rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  background: #23232b;
  color: #fff;
  border: 2px solid #00ffea;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.followon-btn:hover {
  background: #00ffea;
  color: #000;
  box-shadow: 0 0 20px #00ffea;
  transform: translateY(-2px);
}

.followon-btn.pass-btn {
  border-color: #ff4444;
  color: #ff4444;
}

.followon-btn.pass-btn:hover {
  background: #ff4444;
  color: #000;
  box-shadow: 0 0 20px #ff4444;
}

.followon-btn.prorata-btn {
  border-color: #44ff44;
  color: #44ff44;
}

.followon-btn.prorata-btn:hover {
  background: #44ff44;
  color: #000;
  box-shadow: 0 0 20px #44ff44;
}

.followon-btn.double-btn {
  border-color: #ffaa00;
  color: #ffaa00;
}

.followon-btn.double-btn:hover {
  background: #ffaa00;
  color: #000;
  box-shadow: 0 0 20px #ffaa00;
}

.btn-subtitle {
  font-size: 0.6rem;
  margin-top: 0.3rem;
  opacity: 0.8;
  font-weight: normal;
}

/* Follow-on result popup */
.followon-result-overlay {
  background: rgba(0, 0, 0, 0.9);
}

.followon-result-popup {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 3px solid #00ffea;
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  box-shadow: 0 0 30px #00ffea66;
  animation: resultPopupBounce 0.8s ease-out;
}

@keyframes resultPopupBounce {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.result-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
}

.result-header.success {
  background: rgba(68, 255, 68, 0.2);
  border: 1px solid rgba(68, 255, 68, 0.5);
}

.result-header.failure {
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid rgba(255, 68, 68, 0.5);
}

.result-header.neutral {
  background: rgba(255, 170, 0, 0.2);
  border: 1px solid rgba(255, 170, 0, 0.5);
}

.result-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.result-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  margin: 0;
}

.result-content {
  margin-bottom: 2rem;
}

.result-message {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

.result-details {
  background: rgba(0, 255, 234, 0.05);
  border: 1px solid rgba(0, 255, 234, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.result-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-details .detail-row:last-child {
  border-bottom: none;
}

.result-details .detail-label {
  font-size: 0.9rem;
  color: #aaa;
}

.result-details .detail-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: #fff;
}

.result-details .detail-value.positive {
  color: #44ff44;
  text-shadow: 0 0 4px #44ff44;
}

.result-details .detail-value.negative {
  color: #ff4444;
  text-shadow: 0 0 4px #ff4444;
}

.result-actions {
  text-align: center;
}

.followon-result-btn {
  padding: 1rem 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  background: #00ffea;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.followon-result-btn:hover {
  background: #44ff44;
  box-shadow: 0 0 20px #44ff44;
  transform: scale(1.05);
}

/* Mobile responsive adjustments for follow-on UI */
@media (max-width: 768px) {
  .followon-event-popup {
    width: 95vw;
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .followon-actions {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .followon-btn {
    padding: 1rem;
    min-height: 70px;
    font-size: 0.6rem;
  }
  
  .detail-grid,
  .option-grid {
    gap: 0.6rem;
  }
  
  .detail-item,
  .option-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem;
  }
  
  .detail-value,
  .option-value {
    margin-top: 0.3rem;
    text-align: left;
  }
  
  .followon-result-popup {
    width: 95vw;
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* ==============================================================================
   PHASE 12.5: INVESTMENT PHASE FOLLOW-ON UI STYLES
   ============================================================================== */

/* Investment phase follow-on overlay (higher z-index than regular popups) */
.investment-phase-followon {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(3px);
}

/* Investment phase follow-on popup styling */
.investment-phase-popup {
  border-color: #ffaa00;
  box-shadow: 0 0 40px #ffaa0066;
  animation: investmentPhaseSlideIn 0.7s ease-out;
}

@keyframes investmentPhaseSlideIn {
  0% {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Investment phase specific title styling */
.investment-phase-popup .followon-title {
  color: #ffaa00;
  text-shadow: 0 0 12px #ffaa00;
  border-bottom: 2px solid #ffaa00;
  padding-bottom: 0.5rem;
}

/* Investment phase company info styling */
.investment-phase-popup .followon-company-info {
  background: rgba(255, 170, 0, 0.15);
  border-color: rgba(255, 170, 0, 0.4);
}

.investment-phase-popup .funding-stage {
  color: #ffaa00;
  text-shadow: 0 0 10px #ffaa00;
}

/* Investment phase description alert styling */
.investment-phase-popup .followon-description {
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.1) 0%, rgba(255, 68, 68, 0.1) 100%);
  border-left-color: #ffaa00;
  border-left-width: 5px;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(255, 170, 0, 0.3);
}

/* Investment phase button styling - more urgent colors */
.investment-phase-popup .followon-btn {
  border-width: 3px;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.investment-phase-popup .followon-btn.pass-btn {
  border-color: #ff6666;
  color: #ff6666;
  background: rgba(255, 102, 102, 0.1);
}

.investment-phase-popup .followon-btn.pass-btn:hover {
  background: #ff6666;
  color: #000;
  box-shadow: 0 0 25px #ff6666;
  transform: translateY(-3px);
}

.investment-phase-popup .followon-btn.prorata-btn {
  border-color: #66ff66;
  color: #66ff66;
  background: rgba(102, 255, 102, 0.1);
}

.investment-phase-popup .followon-btn.prorata-btn:hover {
  background: #66ff66;
  color: #000;
  box-shadow: 0 0 25px #66ff66;
  transform: translateY(-3px);
}

.investment-phase-popup .followon-btn.double-btn {
  border-color: #ffcc00;
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.1);
}

.investment-phase-popup .followon-btn.double-btn:hover {
  background: #ffcc00;
  color: #000;
  box-shadow: 0 0 25px #ffcc00;
  transform: translateY(-3px);
}

/* Investment phase result popup enhanced styling */
.investment-phase-followon + .followon-result-overlay .followon-result-popup {
  border-color: #ffaa00;
  box-shadow: 0 0 35px #ffaa0066;
}

.investment-phase-followon + .followon-result-overlay .result-header.success {
  background: rgba(102, 255, 102, 0.25);
  border-color: rgba(102, 255, 102, 0.6);
}

.investment-phase-followon + .followon-result-overlay .result-header.failure {
  background: rgba(255, 102, 102, 0.25);
  border-color: rgba(255, 102, 102, 0.6);
}

.investment-phase-followon + .followon-result-overlay .result-header.neutral {
  background: rgba(255, 170, 0, 0.25);
  border-color: rgba(255, 170, 0, 0.6);
}

/* Investment phase mobile adjustments */
@media (max-width: 768px) {
  .investment-phase-popup {
    width: 98vw;
    margin: 0.5rem;
  }

  .investment-phase-popup .followon-title {
    font-size: 1rem;
  }

  .investment-phase-popup .followon-description {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}

/* ===== MOBILE RESPONSIVENESS ADDITIONS (480px breakpoint) ===== */

@media (max-width: 480px) {
  /* Portfolio Transition Popup */
  .portfolio-transition-title {
    font-size: 1.1rem;
  }

  .portfolio-transition-popup {
    padding: 1rem;
  }

  .begin-portfolio-btn {
    font-size: 0.7rem;
    padding: 0.75rem;
    min-height: 44px;
  }

  /* Portfolio Event Popup */
  .portfolio-event-popup {
    padding: 1rem;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-event-title {
    font-size: 1rem;
  }

  .portfolio-event-company {
    font-size: 1rem;
  }

  .portfolio-event-description {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .portfolio-action-btn {
    font-size: 0.6rem;
    padding: 0.85rem;
    min-height: 44px;
  }

  /* Follow-on Event Popup */
  .followon-event-popup {
    padding: 1rem;
    margin: 0.5rem;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .followon-title {
    font-size: 1rem;
  }

  .company-name {
    font-size: 0.8rem;
  }

  .followon-btn {
    font-size: 0.6rem;
    min-height: 52px;
    padding: 0.75rem;
  }

  .followon-result-btn {
    font-size: 0.7rem;
    padding: 0.85rem 1.5rem;
    min-height: 44px;
  }

  .detail-section h4 {
    font-size: 0.7rem;
  }

  /* Investment phase popup */
  .investment-phase-popup .followon-title {
    font-size: 1rem;
  }
}

/* ============================================================
   PORTFOLIO MANAGEMENT DASHBOARD
   ============================================================ */

.pm-dashboard {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 255, 234, 0.3);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  animation: dashboardFadeIn 0.6s ease-out;
}

@keyframes dashboardFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.pm-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 234, 0.2);
}

.pm-phase-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: #00ffea;
  text-shadow: 0 0 8px #00ffea;
  letter-spacing: 2px;
}

.pm-year-label {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 255, 234, 0.3);
}

/* Portfolio Grid */
.pm-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  max-height: 220px;
  overflow-y: auto;
}

.pm-portfolio-grid::-webkit-scrollbar {
  width: 4px;
}
.pm-portfolio-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 234, 0.3);
  border-radius: 2px;
}

.pm-company-card {
  background: rgba(0, 255, 234, 0.04);
  border: 1px solid rgba(0, 255, 234, 0.15);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pm-company-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.pm-card-active::before { background: #00ff88; }
.pm-card-exited::before { background: #ffd700; }
.pm-card-failed::before { background: #ff4444; }
.pm-card-failed { opacity: 0.45; }

.pm-company-name {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pm-company-stage {
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.1;
}

.pm-company-moic {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.1;
}

.moic-good { color: #00ff88; text-shadow: 0 0 4px rgba(0, 255, 136, 0.5); }
.moic-neutral { color: #ffaa00; }
.moic-poor { color: #ff4444; }

/* Card highlight animations */
.pm-card-highlight-exit {
  animation: cardGlowGold 0.5s ease-in-out 4;
  border-color: #ffd700 !important;
}

.pm-card-highlight-fail {
  animation: cardGlowRed 0.5s ease-in-out 4;
  border-color: #ff4444 !important;
}

@keyframes cardGlowGold {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

@keyframes cardGlowRed {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.8); }
}

/* Activity Feed */
.pm-activity-feed {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 234, 0.12);
  border-radius: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.pm-activity-feed::-webkit-scrollbar {
  width: 4px;
}
.pm-activity-feed::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 234, 0.2);
  border-radius: 2px;
}

.pm-feed-icon {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.pm-feed-header {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #00ffea;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 234, 0.12);
  letter-spacing: 2px;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.pm-feed-entries {
  padding: 0.2rem 0;
}

.pm-feed-entry {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  display: flex;
  gap: 0.4rem;
  line-height: 1.3;
}

.pm-feed-year {
  color: #00ffea;
  min-width: 24px;
  opacity: 0.6;
  flex-shrink: 0;
}

.pm-feed-msg { color: #ccc; }
.pm-feed-exit .pm-feed-msg { color: #ffd700; font-weight: bold; }
.pm-feed-fail .pm-feed-msg { color: #ff4444; }
.pm-feed-followon .pm-feed-msg { color: #44ff44; }
.pm-feed-flavor .pm-feed-msg { color: #999; font-style: italic; }
.pm-feed-board .pm-feed-msg { color: #00ffea; }

/* ============================================================
   DRAMATIC EXIT REVEAL
   ============================================================ */

.pm-dramatic-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pm-dramatic-show { opacity: 1; }
.pm-dramatic-hide { opacity: 0; transition: opacity 0.5s ease; }

.pm-dramatic-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.2rem;
  animation: dramaticPulse 0.8s ease-in-out infinite alternate;
  letter-spacing: 4px;
}

.dramatic-ipo {
  color: #ffd700;
  text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700, 0 0 80px rgba(255, 215, 0, 0.5);
}

.dramatic-exit {
  color: #00ff88;
  text-shadow: 0 0 20px #00ff88, 0 0 40px rgba(0, 255, 136, 0.5);
}

.dramatic-fail {
  color: #ff4444;
  text-shadow: 0 0 20px #ff4444, 0 0 40px rgba(255, 68, 68, 0.5);
  animation: dramaticGlitch 0.15s ease-in-out infinite;
}

.pm-dramatic-company {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: #fff;
  margin-top: 1rem;
  opacity: 0.8;
  letter-spacing: 1px;
}

@keyframes dramaticPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes dramaticGlitch {
  0% { transform: translate(0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(0); }
}

/* ============================================================
   FLAVOR NOTIFICATIONS
   ============================================================ */

.pm-flavor-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(24, 24, 27, 0.95);
  border: 1px solid rgba(0, 255, 234, 0.35);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2000;
  max-width: 380px;
  width: 85vw;
  opacity: 0;
  transition: all 0.5s ease;
  box-shadow: 0 0 15px rgba(0, 255, 234, 0.15);
  pointer-events: none;
}

.pm-flavor-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pm-flavor-hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.pm-flavor-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pm-flavor-text {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.3;
}

/* ============================================================
   RESPONSIVE: MOBILE
   ============================================================ */

@media (max-width: 480px) {
  .pm-dashboard {
    padding: 0.5rem;
    min-height: 200px;
  }

  .pm-phase-label {
    font-size: 0.45rem;
  }

  .pm-year-label {
    font-size: 1rem;
  }

  .pm-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    max-height: 160px;
  }

  .pm-company-card {
    padding: 0.3rem 0.4rem;
  }

  .pm-company-name {
    font-size: 0.8rem;
  }

  .pm-company-stage {
    font-size: 0.65rem;
  }

  .pm-company-moic {
    font-size: 0.8rem;
  }

  .pm-activity-feed {
    max-height: 100px;
  }

  .pm-feed-entry {
    font-size: 0.75rem;
  }

  .pm-dramatic-text {
    font-size: 1.5rem;
  }

  .pm-dramatic-company {
    font-size: 1.1rem;
  }

  .pm-flavor-notification {
    max-width: 300px;
    padding: 0.6rem 0.8rem;
  }

  .pm-flavor-text {
    font-size: 0.85rem;
  }

}

/* ============================================================
   CARD STATE TRANSITION ANIMATIONS
   ============================================================ */

/* Dying animation: red flash + shake + fade */
.pm-card-dying {
  animation: cardDie 0.8s ease-out forwards;
}

@keyframes cardDie {
  0% { transform: scale(1); border-color: rgba(0,255,234,0.15); }
  15% { transform: scale(1.05); border-color: #ff4444; box-shadow: 0 0 15px rgba(255,68,68,0.8); background: rgba(255,0,0,0.15); }
  30% { transform: scale(1.02) rotate(-1deg); }
  50% { transform: scale(0.98) rotate(0.5deg); }
  100% { transform: scale(0.95); opacity: 0.4; border-color: #ff4444; background: rgba(255,0,0,0.05); }
}

/* Minor exit glow: brief amber pulse */
.pm-card-exiting {
  animation: cardExitPulse 0.8s ease-out forwards;
}

@keyframes cardExitPulse {
  0% { border-color: rgba(0,255,234,0.15); }
  30% { border-color: #ffd700; box-shadow: 0 0 15px rgba(255,215,0,0.6); }
  100% { border-color: #ffd700; box-shadow: none; }
}

/* Major exit: sustained gold glow */
.pm-card-major-exit {
  animation: cardMajorGlow 2s ease-in-out forwards;
  z-index: 10;
  position: relative;
}

@keyframes cardMajorGlow {
  0% { transform: scale(1); }
  20% { transform: scale(1.08); border-color: #ffd700; box-shadow: 0 0 25px rgba(255,215,0,0.9), inset 0 0 10px rgba(255,215,0,0.2); }
  80% { transform: scale(1.08); border-color: #ffd700; box-shadow: 0 0 25px rgba(255,215,0,0.9), inset 0 0 10px rgba(255,215,0,0.2); }
  100% { transform: scale(1); border-color: #ffd700; box-shadow: 0 0 5px rgba(255,215,0,0.3); }
}

/* Flavor event card pulse */
.pm-card-pulse {
  animation: cardFlavorPulse 1.2s ease-out;
}

@keyframes cardFlavorPulse {
  0% { border-color: rgba(0,255,234,0.15); }
  25% { border-color: rgba(0,255,234,0.6); box-shadow: 0 0 10px rgba(0,255,234,0.3); }
  100% { border-color: rgba(0,255,234,0.15); box-shadow: none; }
}

/* ============================================================
   MOIC CHANGE ANIMATIONS
   ============================================================ */

.moic-up {
  animation: moicBounceUp 0.6s ease-out;
}

.moic-down {
  animation: moicBounceDown 0.6s ease-out;
}

@keyframes moicBounceUp {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); color: #00ff88; text-shadow: 0 0 10px #00ff88; }
  100% { transform: scale(1); }
}

@keyframes moicBounceDown {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); color: #ff4444; text-shadow: 0 0 10px #ff4444; }
  100% { transform: scale(1); }
}

/* ============================================================
   PROGRESS PHASE INDICATOR
   ============================================================ */

.pm-progress-phase {
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-top: 0.4rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

/* ============================================================
   RESPONSIVE: MOBILE - NEW ELEMENTS
   ============================================================ */

@media (max-width: 480px) {
  .pm-progress-phase {
    font-size: 0.65rem;
  }
}

/* ============================================================
   SPEED BUTTON
   ============================================================ */

.pm-speed-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #00ffea;
  background: rgba(0, 255, 234, 0.08);
  border: 1px solid rgba(0, 255, 234, 0.3);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.pm-speed-btn:hover {
  background: rgba(0, 255, 234, 0.15);
  border-color: rgba(0, 255, 234, 0.6);
}

.pm-speed-active {
  color: #ffd700;
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  animation: speedBtnPulse 1s ease-in-out infinite alternate;
}

@keyframes speedBtnPulse {
  0% { box-shadow: 0 0 6px rgba(255, 215, 0, 0.2); }
  100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.5); }
}

/* ============================================================
   TIMELINE BAR (Y6 to Y10/Y12)
   ============================================================ */

.pm-timeline-bar {
  margin-bottom: 0.6rem;
  padding: 0 0.2rem;
}

.pm-timeline-track {
  position: relative;
  height: 4px;
  background: rgba(0, 255, 234, 0.12);
  border-radius: 2px;
  margin-bottom: 0.3rem;
}

.pm-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #00ffea, #00ff88);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.pm-timeline-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #00ffea;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ffea, 0 0 16px rgba(0, 255, 234, 0.4);
  transition: left 0.8s ease;
  z-index: 2;
  animation: timelineDotPulse 2s ease-in-out infinite;
}

@keyframes timelineDotPulse {
  0%, 100% { box-shadow: 0 0 8px #00ffea, 0 0 16px rgba(0, 255, 234, 0.4); }
  50% { box-shadow: 0 0 12px #00ffea, 0 0 24px rgba(0, 255, 234, 0.6); }
}

.pm-timeline-labels {
  display: flex;
  justify-content: space-between;
}

.pm-timeline-year {
  font-family: 'VT323', monospace;
  font-size: 0.65rem;
  color: #555;
  transition: all 0.3s ease;
}

.pm-timeline-current {
  color: #00ffea;
  text-shadow: 0 0 6px rgba(0, 255, 234, 0.5);
  font-weight: bold;
}


/* ============================================================
   PM YEAR TRANSITION OVERLAY
   ============================================================ */

.pm-year-transition {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 4500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pm-year-transition-show { opacity: 1; }
.pm-year-transition-hide { opacity: 0; }

.pm-year-transition-number {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.5rem;
  color: #00ffea;
  text-shadow: 0 0 20px #00ffea, 0 0 40px rgba(0, 255, 234, 0.3);
  animation: yearTransitionScale 0.5s ease-out;
}

.pm-year-transition-sub {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: #999;
  margin-top: 0.5rem;
  letter-spacing: 2px;
}

@keyframes yearTransitionScale {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   QUICK REACTION POPUP
   ============================================================ */

.pm-reaction-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(20, 10, 30, 0.97);
  border: 2px solid #ff44ff;
  border-radius: 12px;
  padding: 0;
  z-index: 4000;
  width: 85vw;
  max-width: 400px;
  opacity: 0;
  transition: all 0.3s ease-out;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 68, 255, 0.4);
  animation: reactionPulse 1s ease-in-out infinite alternate;
}

@keyframes reactionPulse {
  0% { box-shadow: 0 0 20px rgba(255, 68, 255, 0.3); }
  100% { box-shadow: 0 0 40px rgba(255, 68, 255, 0.6); }
}

.pm-reaction-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pm-reaction-hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.pm-reaction-timer-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.pm-reaction-timer-fill {
  height: 100%;
  width: 100%;
  background: #00ff88;
  transition: width 50ms linear;
}

.pm-reaction-header {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #ff44ff;
  text-align: center;
  padding: 0.6rem 0 0.2rem;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #ff44ff;
  transition: all 0.3s ease;
}

.pm-reaction-category {
  font-family: 'VT323', monospace;
  font-size: 0.7rem;
  color: #888;
  text-align: center;
  letter-spacing: 2px;
}

.pm-reaction-title {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: #fff;
  text-align: center;
  padding: 0.3rem 1rem;
  font-weight: bold;
}

.pm-reaction-scenario {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: #ccc;
  text-align: center;
  padding: 0.3rem 1rem 0.8rem;
  line-height: 1.3;
}

.pm-reaction-options {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 68, 255, 0.3);
}

.pm-reaction-btn {
  flex: 1;
  padding: 0.8rem;
  background: transparent;
  color: #ff44ff;
  border: none;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.pm-reaction-btn:first-child {
  border-right: 1px solid rgba(255, 68, 255, 0.3);
}

.pm-reaction-btn:hover,
.pm-reaction-btn:active {
  background: rgba(255, 68, 255, 0.2);
  color: #fff;
}

/* ============================================================
   NARRATIVE EVENT — CONTEXT CARD
   ============================================================ */

/* Override narrative popup to use cyan theme instead of magenta */
.pm-narrative-popup {
  border-color: #00ffea;
  box-shadow: 0 0 30px rgba(0, 255, 234, 0.4);
  animation: narrativePulse 1s ease-in-out infinite alternate;
}

@keyframes narrativePulse {
  0% { box-shadow: 0 0 20px rgba(0, 255, 234, 0.3); }
  100% { box-shadow: 0 0 40px rgba(0, 255, 234, 0.6); }
}

.pm-narrative-popup .pm-reaction-options {
  border-top-color: rgba(0, 255, 234, 0.3);
}

.pm-narrative-popup .pm-reaction-btn {
  color: #00ffea;
}

.pm-narrative-popup .pm-reaction-btn:first-child {
  border-right-color: rgba(0, 255, 234, 0.3);
}

.pm-narrative-popup .pm-reaction-btn:hover,
.pm-narrative-popup .pm-reaction-btn:active {
  background: rgba(0, 255, 234, 0.15);
  color: #fff;
}

/* Context card — reminds player who this company is */
.pm-context-card {
  background: rgba(0, 255, 234, 0.05);
  border-bottom: 1px solid rgba(0, 255, 234, 0.2);
  padding: 0.75rem 1rem;
  text-align: center;
}

.pm-context-name {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: #00ffea;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 255, 234, 0.4);
}

.pm-context-desc {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
  margin-top: 0.15rem;
  line-height: 1.2;
}

.pm-context-journey {
  font-family: 'VT323', monospace;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.3rem;
  letter-spacing: 0.5px;
}

.pm-context-stakes {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: #00ff88;
  margin-top: 0.15rem;
  font-weight: bold;
}

/* Adjust title/scenario for narrative popups with context card */
.pm-narrative-popup .pm-reaction-title {
  padding-top: 0.6rem;
  color: #fff;
}

.pm-narrative-popup .pm-reaction-scenario {
  padding-bottom: 0.6rem;
}

@media (max-width: 480px) {
  .pm-context-card {
    padding: 0.5rem 0.75rem;
  }
  .pm-context-name {
    font-size: 1.1rem;
  }
  .pm-context-desc {
    font-size: 0.75rem;
  }
}

/* ============================================================
   DASHBOARD BREATHING ANIMATION
   ============================================================ */

.pm-dashboard-event-transition {
  animation: dashboardBreath 0.7s ease-in-out;
}

@keyframes dashboardBreath {
  0% { border-color: rgba(0, 255, 234, 0.3); }
  50% { border-color: rgba(0, 255, 234, 0.5); box-shadow: 0 0 8px rgba(0, 255, 234, 0.2); }
  100% { border-color: rgba(0, 255, 234, 0.3); }
}

/* ============================================================
   ENHANCED MOIC CARD GLOW
   ============================================================ */

.pm-company-card[data-moic-dir="up"] {
  animation: cardMoicUpGlow 0.8s ease-out;
}

.pm-company-card[data-moic-dir="down"] {
  animation: cardMoicDownGlow 0.8s ease-out;
}

@keyframes cardMoicUpGlow {
  0% { background: rgba(0, 255, 234, 0.04); }
  30% { background: rgba(0, 255, 136, 0.12); border-color: rgba(0, 255, 136, 0.5); }
  100% { background: rgba(0, 255, 234, 0.04); }
}

@keyframes cardMoicDownGlow {
  0% { background: rgba(0, 255, 234, 0.04); }
  30% { background: rgba(255, 68, 68, 0.12); border-color: rgba(255, 68, 68, 0.5); }
  100% { background: rgba(0, 255, 234, 0.04); }
}

/* ============================================================
   RESPONSIVE: MOBILE - NEW FEATURES
   ============================================================ */

@media (max-width: 480px) {
  .pm-speed-btn {
    font-size: 0.4rem;
    padding: 0.2rem 0.35rem;
  }

  .pm-timeline-dot {
    width: 8px;
    height: 8px;
  }

  .pm-timeline-year {
    font-size: 0.55rem;
  }

  .pm-year-transition-number {
    font-size: 1.8rem;
  }

  .pm-year-transition-sub {
    font-size: 0.9rem;
  }

  .pm-reaction-popup {
    width: 92vw;
  }

  .pm-reaction-title {
    font-size: 1.1rem;
  }

  .pm-reaction-scenario {
    font-size: 0.85rem;
  }

  .pm-reaction-btn {
    font-size: 0.95rem;
    padding: 0.7rem;
  }
}

/* ============================================================
   EXIT POPUP — LEVEL 100 JUICE
   ============================================================ */

.exit-popup {
  padding: 1em 1.3em 0.8em 1.3em !important;
  max-width: 420px !important;
  max-height: 94vh !important;
  font-family: 'VT323', monospace !important;
  font-size: 1.15rem !important;
  text-shadow: none !important;
}

.exit-popup .retro-title {
  font-family: 'Press Start 2P', monospace !important;
  text-shadow: 1px 1px 0 #00ffea, 0 0 8px #00ffea99 !important;
  font-size: 1.2rem !important;
  margin-bottom: 0.3rem !important;
}

.exit-popup .exit-company-info p:first-child,
.exit-popup-compact p:has(> strong) {
  font-family: 'Press Start 2P', monospace !important;
  text-shadow: 1px 1px 0 #00ffea, 0 0 8px #00ffea99 !important;
  font-size: 0.85rem !important;
}

.exit-popup .exit-company-info p:last-child,
.exit-popup-compact p[style*="font-style:italic"] {
  font-family: 'VT323', monospace !important;
  font-size: 1.05rem !important;
  text-shadow: none !important;
  line-height: 1.2;
}

.exit-popup .deal-memo-flavor,
.exit-popup-compact .deal-memo-flavor {
  font-size: 1.05rem !important;
  line-height: 1.25;
  text-shadow: none !important;
  margin-bottom: 0.3rem !important;
  padding-left: 0.6rem !important;
}

.exit-popup .exit-callback-line,
.exit-popup-compact .exit-callback-line {
  font-family: 'VT323', monospace !important;
  font-size: 1.05rem !important;
  text-shadow: none !important;
}

.exit-popup .deal-memo-row,
.exit-popup-compact .deal-memo-row {
  font-size: 1.1rem !important;
  margin-bottom: 0.3rem !important;
}

.exit-popup .deal-memo-panel,
.exit-popup-compact .deal-memo-panel {
  padding: 0.6rem !important;
  margin-bottom: 0.5rem !important;
  margin-top: 0.5rem !important;
}

.exit-popup .exit-meta-line {
  font-family: 'VT323', monospace !important;
  font-size: 0.95rem !important;
  text-shadow: none !important;
  margin-bottom: 0.4rem !important;
}

.exit-popup #exit-moic-container .deal-memo-label {
  font-family: 'VT323', monospace !important;
  font-size: 0.9rem !important;
  text-shadow: none !important;
}

.exit-popup #exit-moic-container #exit-moic-value,
.exit-popup #exit-moic-container #exit-moic-value .moic-counter {
  font-family: 'Press Start 2P', monospace !important;
}

.exit-popup #exit-moic-container {
  margin: 0.5rem 0 !important;
}

.exit-popup .pm-continue-btn,
.exit-popup-compact .pm-continue-btn {
  padding: 0.6rem !important;
  font-family: 'Press Start 2P', monospace !important;
  text-shadow: 1px 1px 0 #00ffea, 0 0 8px #00ffea99 !important;
}

.exit-popup-compact {
  padding: 1em 1.3em 0.8em 1.3em !important;
  max-width: 380px !important;
  max-height: 90vh !important;
  font-family: 'VT323', monospace !important;
  font-size: 1.15rem !important;
  text-shadow: none !important;
}

.exit-popup-compact .retro-title {
  font-family: 'Press Start 2P', monospace !important;
  text-shadow: 1px 1px 0 #00ffea, 0 0 8px #00ffea99 !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.3rem !important;
}

.exit-popup-compact .deal-memo-row {
  font-size: 1.1rem !important;
  margin-bottom: 0.25rem !important;
}

.exit-label-stamp {
  display: inline-block;
  animation: stamp-slam-subtle 0.35s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.exit-label-glitch {
  display: inline-block;
  animation: dramaticGlitch 0.15s ease-in-out 6;
}

@keyframes moic-glow-pulse {
  0%   { text-shadow: 0 0 10px currentColor; transform: scale(1); }
  50%  { text-shadow: 0 0 30px currentColor, 0 0 60px currentColor; transform: scale(1.15); }
  100% { text-shadow: 0 0 15px currentColor; transform: scale(1); }
}

.moic-glow-pulse {
  animation: moic-glow-pulse 0.6s ease-out forwards;
}

@keyframes moic-glow-pulse-intense {
  0%   { text-shadow: 0 0 15px currentColor; transform: scale(1); }
  50%  { text-shadow: 0 0 50px currentColor, 0 0 100px currentColor; transform: scale(1.25); }
  100% { text-shadow: 0 0 25px currentColor, 0 0 50px currentColor; transform: scale(1); }
}

.moic-glow-pulse-intense {
  animation: moic-glow-pulse-intense 0.8s ease-out forwards;
}

.moic-legendary {
  font-size: 1.6rem !important;
  letter-spacing: 2px;
}

@keyframes exit-border-flash {
  0%   { box-shadow: 0 0 32px #00ffea, 0 0 0 12px #004c4c; }
  30%  { box-shadow: 0 0 50px var(--exit-flash-color, #00ff88), 0 0 80px var(--exit-flash-color, #00ff88), 0 0 0 12px var(--exit-flash-color, #00ff88); }
  100% { box-shadow: 0 0 32px #00ffea, 0 0 0 12px #004c4c; }
}

.exit-border-flash {
  animation: exit-border-flash 0.6s ease-out;
}

.exit-loss-panel {
  background: rgba(255, 68, 68, 0.05) !important;
  border: 1px solid rgba(255, 68, 68, 0.3) !important;
  box-shadow: inset 0 0 15px rgba(255, 68, 68, 0.1);
}

.exit-bankruptcy-overlay {
  background: rgba(40, 0, 0, 0.88) !important;
}

.exit-bankruptcy-popup {
  border-color: #ff4444 !important;
  box-shadow: 0 0 32px #ff4444, 0 0 0 12px rgba(255, 68, 68, 0.3) !important;
}

/* ============================================================
   SECONDARY SALE POPUP
   ============================================================ */

.secondary-popup {
  border-color: #ffd700 !important;
  box-shadow: 0 0 32px rgba(255, 215, 0, 0.4), 0 0 0 12px rgba(100, 80, 0, 0.5) !important;
}

.secondary-company-info {
  margin-bottom: 0.5rem;
}

.secondary-financials {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.secondary-financials .deal-memo-row {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.secondary-moic-container {
  margin: 0.5rem 0;
  padding: 0.5rem 0;
}

.secondary-moic-value {
  display: inline-block;
}

.secondary-section-header {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: #ffd700;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.secondary-proceeds-hero {
  text-align: center;
  margin-bottom: 0.3rem;
}

.secondary-proceeds-amount {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.3rem;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  display: inline-block;
  transition: transform 0.1s ease-out, text-shadow 0.1s ease-out;
}

.secondary-proceeds-amount.proceeds-glow {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.5);
  transform: scale(1.08);
}

.secondary-sell-label {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: #b8c1ce;
  margin-bottom: 0.5rem;
}

.secondary-sell-label .pm-sell-pct {
  color: #00ffea;
  font-weight: bold;
}

.secondary-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #ffd700 0%, #ffd700 var(--slider-fill, 33%), #333 var(--slider-fill, 33%));
  outline: none;
  cursor: pointer;
  margin: 0.5rem 0 0.25rem;
}

.secondary-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.secondary-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
}

.secondary-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  cursor: pointer;
}

.secondary-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: #666;
}

.secondary-remaining {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.5rem;
}

.secondary-remaining-pct {
  color: #00ffea;
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.secondary-btn {
  padding: 0.8rem 0.5rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 2px solid;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.secondary-hold-btn {
  border-color: #00ffea;
  color: #00ffea;
}

.secondary-hold-btn:hover {
  background: #00ffea;
  color: #000;
  box-shadow: 0 0 20px #00ffea;
  transform: translateY(-2px);
}

.secondary-sell-btn {
  border-color: #ffd700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
}

.secondary-sell-btn:hover {
  background: #ffd700;
  color: #000;
  box-shadow: 0 0 20px #ffd700;
  transform: translateY(-2px);
}

.secondary-btn-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.secondary-btn-sub {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  opacity: 0.7;
}

@keyframes secondary-border-flash {
  0%   { box-shadow: 0 0 32px rgba(255, 215, 0, 0.4), 0 0 0 12px rgba(100, 80, 0, 0.5); }
  30%  { box-shadow: 0 0 50px #ffd700, 0 0 80px #ffd700, 0 0 0 12px #ffd700; }
  100% { box-shadow: 0 0 32px rgba(255, 215, 0, 0.4), 0 0 0 12px rgba(100, 80, 0, 0.5); }
}

.secondary-border-flash {
  animation: secondary-border-flash 0.6s ease-out;
}

@media (max-width: 640px) {
  .secondary-proceeds-amount {
    font-size: 1.1rem;
  }

  .secondary-moic-value {
    font-size: 1.1rem !important;
  }

  .secondary-btn {
    padding: 0.7rem 0.4rem;
    font-size: 0.6rem;
    min-height: 60px;
  }

  .secondary-section-header {
    font-size: 0.5rem;
  }
}