/* Floating Interactive Corner Widget - Official Logo & Heart Core Edition */
.onion-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.onion-trigger-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a201c, #191412);
  border: 2px solid rgba(224, 122, 95, 0.4);
  box-shadow: 0 8px 25px rgba(224, 122, 95, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  user-select: none;
  animation: logoPulse 3.5s infinite ease-in-out;
}

.onion-trigger-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(224, 122, 95, 0.4));
  transition: transform 0.3s ease;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(224, 122, 95, 0.35); }
  50% { transform: scale(1.08); box-shadow: 0 12px 30px rgba(224, 122, 95, 0.6); }
}

.onion-trigger-btn:hover {
  transform: scale(1.12) rotate(8deg) !important;
  box-shadow: 0 14px 35px rgba(224, 122, 95, 0.7);
}

.onion-trigger-btn:hover .onion-trigger-img {
  transform: scale(1.1);
}

/* Modal Overlay */
.onion-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25, 20, 18, 0.9);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onion-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.onion-card {
  background: #241d1a;
  border: 1px solid rgba(224, 122, 95, 0.2);
  border-radius: 28px;
  padding: 2.5rem;
  max-width: 500px;
  width: 92%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onion-modal-overlay.active .onion-card {
  transform: scale(1) translateY(0);
}

.onion-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(253, 251, 247, 0.05);
  border: 1px solid rgba(253, 251, 247, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.onion-close-btn:hover {
  background: rgba(224, 122, 95, 0.2);
  color: var(--terracotta-main);
}

/* Layer Indicator Dots */
.layer-tracker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.15);
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--terracotta-main);
  box-shadow: 0 0 10px var(--terracotta-main);
  transform: scale(1.3);
}

/* Peeling Logo Stage Container */
.onion-stage {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-peel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.peel-logo-main {
  width: 130px;
  height: 130px;
  object-fit: contain;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.heart-core-glowing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 3.5rem;
  z-index: 1;
  opacity: 0;
  transition: all 0.6s ease;
  filter: drop-shadow(0 0 20px rgba(224, 122, 95, 0.8));
  animation: heartBeat 2s infinite ease-in-out;
}

@keyframes heartBeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.18); }
}

.peel-btn {
  background: linear-gradient(135deg, var(--terracotta-main), var(--terracotta-dark));
  color: #fdfbf7;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(224, 122, 95, 0.3);
  transition: all 0.25s ease;
}

.peel-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(224, 122, 95, 0.5);
}

.sound-toggle-btn {
  background: var(--bg-card);
  color: var(--terracotta-main);
  border: 1px solid var(--terracotta-main);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  background: rgba(224, 122, 95, 0.2);
}
