
section.presentation-active,
header.presentation-active {
  position: relative;
  transition: outline 0.4s ease, box-shadow 0.4s ease;
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  box-shadow: 0 0 30px rgba(242, 166, 90, 0.15) inset;
}

.presentation-bar {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 9999;
  background: rgba(10, 37, 64, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(242, 166, 90, 0.4);
  border-radius: 40px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 12px rgba(242, 166, 90, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 92vw;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.presentation-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 0.7;
  visibility: visible;
}

.presentation-bar.active:hover {
  opacity: 1;
  background: rgba(10, 37, 64, 0.94);
  border-color: var(--accent);
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.5), 0 0 18px rgba(242, 166, 90, 0.3);
}

.presentation-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(234, 242, 250, 0.08);
  overflow: hidden;
  position: relative;
}

.presentation-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  transition: width 0.1s linear;
}

.presentation-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.42rem 0.8rem 0.42rem 1.1rem;
}

.presentation-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--ink);
  white-space: nowrap;
}

.presentation-badge {
  background: rgba(242, 166, 90, 0.15);
  color: var(--accent);
  border: 1px solid rgba(242, 166, 90, 0.5);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.presentation-step-title {
  color: var(--cyan);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  font-size: 0.82rem;
}

.presentation-timer-badge {
  background: rgba(95, 214, 203, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(95, 214, 203, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.presentation-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.presentation-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.presentation-btn-icon {
  padding: 0.3rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.presentation-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(242, 166, 90, 0.15);
}

.presentation-btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
}

.presentation-btn-primary:hover {
  background: #f4b473;
  color: var(--accent-ink);
  border-color: #f4b473;
}

.presentation-btn-close {
  border-color: rgba(255, 99, 132, 0.3);
  color: #ff6b81;
  padding: 0.3rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.presentation-btn-close:hover {
  background: rgba(255, 107, 129, 0.2);
  border-color: #ff6b81;
  color: #ff6b81;
}

.nav-link-presentation {
  background: linear-gradient(135deg, rgba(242, 166, 90, 0.2), rgba(95, 214, 203, 0.2));
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(242, 166, 90, 0.2);
  animation: pulse-glow 2.5s infinite;
}

.nav-link-presentation:hover {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  box-shadow: 0 0 16px rgba(242, 166, 90, 0.5);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 8px rgba(242, 166, 90, 0.2); }
  50% { box-shadow: 0 0 16px rgba(242, 166, 90, 0.5); }
  100% { box-shadow: 0 0 8px rgba(242, 166, 90, 0.2); }
}

@media (max-width: 576px) {
  .presentation-bar {
    bottom: 0.8rem;
    border-radius: 24px;
    width: calc(100% - 1.25rem);
    max-width: 440px;
  }

  .presentation-content {
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
  }

  .presentation-step-title {
    max-width: 80px;
    font-size: 0.72rem;
  }

  .presentation-badge {
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
  }

  .presentation-timer-badge {
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
  }

  .presentation-btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
  }
}

@media (max-width: 380px) {
  .presentation-step-title {
    display: none;
  }
}

