
/* ========================================
   WINS DRAWER - Evidence Locker Edition
   (Overlay UI; not a full screen)
   ======================================== */

.wins-drawer{ max-height: 80dvh; }

.wins-stamps{
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.wins-stamps .stamp--receipts{
  --r: -4deg;
  --tint: rgba(210, 173, 59, 0.15);
  color: var(--p-blazing-yellow);
  animation-delay: 0.1s;
}

.wins-stamps .stamp--evidence{
  --r: 3deg;
  --tint: rgba(97, 217, 251, 0.12);
  color: var(--p-capri);
  animation-delay: 0.2s;
}

.wins-intro{
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  line-height: 1.45;
}

.wins-clear-btn{
  padding: 10px 16px;
  border-radius: 10px;

  border: 1px solid rgba(179, 57, 57, .25);
  background: rgba(179, 57, 57, .08);
  color: rgba(179, 57, 57, .8);

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
  transition: all .15s ease;
}

.wins-clear-btn:hover{
  background: rgba(179, 57, 57, .15);
  border-color: rgba(179, 57, 57, .4);
  color: rgba(179, 57, 57, 1);
}

/* ========================================
   WINS FAB - Floating Action Button
   ======================================== */
.wins-fab {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 900;
  
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  
  background: linear-gradient(135deg, var(--p-blazing-yellow) 0%, #e6c847 100%);
  box-shadow: 
    0 4px 12px rgba(210, 173, 59, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.wins-fab:hover {
  transform: scale(1.08);
  box-shadow: 
    0 6px 20px rgba(210, 173, 59, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.wins-fab:active {
  transform: scale(0.95);
}

.wins-fab__icon {
  width: 26px;
  height: 26px;
  color: var(--p-charcoal, #1a1a1a);
}

/* Badge for win count */
.wins-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  
  background: var(--p-charcoal, #1a1a1a);
  color: var(--p-blazing-yellow);
  
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.wins-fab__badge:empty,
.wins-fab__badge[data-count="0"] {
  display: none;
}

/* Hide during workout */
.workout-active .wins-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* Pulse animation for first-time users */
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(210, 173, 59, 0.4), 0 0 0 0 rgba(210, 173, 59, 0.4); }
  50% { box-shadow: 0 4px 12px rgba(210, 173, 59, 0.4), 0 0 0 12px rgba(210, 173, 59, 0); }
}

.wins-fab--pulse {
  animation: fab-pulse 2s ease-in-out 3;
}
