/* ==========================================================================
   Cookie's Cozy Sanctuary - Stylesheet
   Theme: Pinky Fuzzy Purple | Mobile-First | Zero Emojis | 60+ FPS WAAPI
   ========================================================================== */

:root {
  /* Color Palette: Pinky Fuzzy Purple */
  --bg-deep: #160a1d;
  --bg-surface: #220f2b;
  --bg-card: rgba(43, 18, 54, 0.68);
  --bg-card-hover: rgba(56, 24, 70, 0.8);
  
  --primary-pink: #f28ecc;
  --primary-purple: #b969e6;
  --primary-violet: #8e45c4;
  --fuzzy-blush: #ffd3ec;
  --fuzzy-glow: rgba(235, 125, 205, 0.38);
  --fuzzy-purple-glow: rgba(168, 85, 247, 0.35);

  --text-primary: #fff2fa;
  --text-secondary: #e2c0e8;
  --text-muted: #b78bbd;

  --border-subtle: rgba(242, 142, 204, 0.22);
  --border-highlight: rgba(255, 211, 236, 0.45);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #30133c 0%, #170a1e 50%, #100616 100%);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Fuzzy Glowing Orbs */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: var(--primary-pink);
  top: -50px;
  right: -50px;
  animation-duration: 16s;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: var(--primary-purple);
  top: 35%;
  left: -80px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: #f72585;
  bottom: 5%;
  right: -40px;
  opacity: 0.4;
  animation-duration: 19s;
  animation-delay: -9s;
}

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(25px, 35px, 0) scale(1.12); }
  100% { transform: translate3d(-20px, 15px, 0) scale(0.95); }
}

/* Warmth Overlay (Thumb Hold State) */
.warmth-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 140, 200, 0.32) 0%, rgba(185, 105, 230, 0.22) 50%, rgba(22, 10, 29, 0) 85%);
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.warmth-overlay.active {
  opacity: 1;
  animation: warmPulse 2.8s ease-in-out infinite;
}

@keyframes warmPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Top Nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-pink);
  box-shadow: 0 0 10px var(--primary-pink);
  animation: dotGlow 2s infinite ease-in-out;
}

@keyframes dotGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.brand-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fuzzy-blush);
}

.audio-controls {
  display: flex;
  gap: 10px;
}

.icon-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s var(--smooth-ease);
}

.icon-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-pink);
  color: var(--text-primary);
}

.icon-toggle-btn.active {
  background: linear-gradient(135deg, rgba(242, 142, 204, 0.25), rgba(185, 105, 230, 0.25));
  border-color: var(--primary-pink);
  color: var(--fuzzy-blush);
  box-shadow: 0 0 15px var(--fuzzy-glow);
}

.ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* Music Dropdown Wrapper & Volume Popover */
.music-dropdown-wrapper {
  position: relative;
}

.volume-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 72px;
  background: linear-gradient(165deg, rgba(55, 20, 70, 0.96) 0%, rgba(26, 9, 34, 0.98) 100%);
  border: 1px solid rgba(242, 142, 204, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  box-shadow: 0 16px 36px rgba(10, 3, 15, 0.65);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-8px) scale(0.94);
  pointer-events: none;
  transition: all 0.25s var(--smooth-ease);
}

.volume-popover.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.volume-popover-header {
  width: 100%;
  text-align: center;
}

.music-note-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fuzzy-blush);
}

.volume-slider-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 130px;
  justify-content: center;
}

.vol-icon {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

.vertical-slider-track {
  width: 28px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vertical-volume-input {
  width: 90px;
  height: 6px;
  transform: rotate(-90deg);
  transform-origin: center;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.vertical-volume-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px var(--primary-pink);
  cursor: pointer;
  transition: transform 0.15s;
}

.vertical-volume-input::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.vertical-volume-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px var(--primary-pink);
  cursor: pointer;
}

.volume-status {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--fuzzy-blush);
}

.volume-divider {
  width: 80%;
  height: 1px;
  background: rgba(242, 142, 204, 0.2);
}

.popover-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 142, 204, 0.3);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--smooth-ease);
}

.popover-play-btn:active {
  transform: scale(0.92);
}

.popover-play-btn.paused {
  background: rgba(242, 142, 204, 0.2);
  border-color: var(--primary-pink);
  color: var(--fuzzy-blush);
}

.play-icon {
  width: 14px;
  height: 14px;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.welcome-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fuzzy-blush);
  background: linear-gradient(90deg, rgba(242, 142, 204, 0.2), rgba(185, 105, 230, 0.1));
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.chip-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-pink);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffffff 40%, var(--fuzzy-blush) 80%, var(--primary-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.status-card {
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-pink);
  flex-shrink: 0;
}

.status-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
}

.status-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fuzzy-blush);
}

/* Shared Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-pink);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.swipe-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-arrow {
  width: 14px;
  height: 14px;
}

/* SECTION 1: Zero-Guilt Permission Slips */
.slips-section {
  display: flex;
  flex-direction: column;
}

.slips-carousel {
  overflow: visible;
  padding: 6px 0;
}

.slip-slide {
  min-width: 88%;
  max-width: 88%;
}

.keen-slider,
.keen-slider:focus,
.keen-slider:focus-visible,
.keen-slider__slide,
.keen-slider__slide:focus,
.slip-slide,
.slip-card,
.slip-card:focus {
  outline: none !important;
}

.slip-card {
  position: relative;
  background: linear-gradient(165deg, rgba(58, 22, 72, 0.85) 0%, rgba(30, 11, 38, 0.95) 100%);
  border: 1px solid rgba(242, 142, 204, 0.35);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(10, 3, 15, 0.45);
  overflow: hidden;
  transition: transform 0.3s var(--smooth-ease);
}

.slip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fuzzy-blush);
  background: rgba(242, 142, 204, 0.16);
  border: 1px solid rgba(242, 142, 204, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.slip-badge-icon {
  width: 13px;
  height: 13px;
}

.slip-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin-top: 14px;
}

.slip-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

.slip-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stamp-slot {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.granted-stamp {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: #ff9ee2;
  border: 2px dashed #ff9ee2;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  transform: rotate(-10deg) scale(0);
  opacity: 0;
  transition: all 0.4s var(--spring-bounce);
  box-shadow: 0 0 14px rgba(255, 158, 226, 0.45);
}

.slip-card.claimed .granted-stamp {
  transform: rotate(-8deg) scale(1);
  opacity: 1;
}

.claim-slip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
  border: none;
  color: #17091f;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(242, 142, 204, 0.35);
  transition: all 0.25s var(--spring-bounce);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.claim-slip-btn:active {
  transform: scale(0.94);
}

.slip-card.claimed .claim-slip-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fuzzy-blush);
  box-shadow: none;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 0;
}

.slider-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--smooth-ease);
  touch-action: manipulation;
}

/* 44px accessible touch target for mobile thumb tapping */
.slider-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}

.slider-dot.active {
  width: 26px;
  border-radius: 6px;
  background: var(--primary-pink);
  box-shadow: 0 0 12px var(--fuzzy-glow);
}

/* SECTION 2: Emergency Dispenser */
.dispenser-section {
  display: flex;
  flex-direction: column;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px 2px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s var(--smooth-ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cat-tab.active {
  background: linear-gradient(135deg, rgba(242, 142, 204, 0.3) 0%, rgba(185, 105, 230, 0.3) 100%);
  border-color: var(--primary-pink);
  color: #ffffff;
  box-shadow: 0 0 16px var(--fuzzy-glow);
}

.tab-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.dispenser-card-container {
  perspective: 1000px;
  position: relative;
}

.dispenser-card-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: rgba(28, 10, 38, 0.7);
  border: 1px solid rgba(242, 142, 204, 0.18);
  transform: translate3d(2px, 3px, -8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

.dispenser-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid rgba(242, 142, 204, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(10, 3, 15, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 250px;
  transform-style: preserve-3d;
  will-change: transform, opacity, box-shadow;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Audio-synced Card Shuffle: 768ms Two-Beat Profile
   Beat 1 Snap Peak: ~325ms (flick outward)
   Beat 2 Land Peak: ~685ms (deck slap impact)
*/
.dispenser-card.shuffling,
.dispenser-card.flipping {
  animation: cardShuffle 0.77s cubic-bezier(0.22, 0.85, 0.32, 1) forwards;
  pointer-events: none;
}

.dispenser-card.shuffling .next-btn .btn-icon,
.dispenser-card.flipping .next-btn .btn-icon {
  transform: rotate(360deg);
  transition: transform 0.77s cubic-bezier(0.2, 0.85, 0.3, 1);
}

@keyframes cardShuffle {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    box-shadow: 0 12px 32px rgba(10, 3, 15, 0.45);
    opacity: 1;
    border-color: rgba(242, 142, 204, 0.35);
  }
  22% {
    /* Friction & peel (0 - 170ms) */
    transform: translate3d(14px, -10px, 16px) rotate(2.4deg) scale(1.01);
    box-shadow: -8px 18px 36px rgba(10, 3, 15, 0.55);
    opacity: 0.92;
  }
  42% {
    /* Beat 1 Snap Peak (~325ms): Card flicks outward */
    transform: translate3d(48px, -26px, 42px) rotate(7.5deg) scale(1.035);
    box-shadow: -16px 26px 42px rgba(242, 142, 204, 0.25), 0 20px 40px rgba(10, 3, 15, 0.6);
    opacity: 0.12;
  }
  46% {
    /* Fast under-deck positioning (~355ms): incoming card ready */
    transform: translate3d(-34px, 14px, -16px) rotate(-3.5deg) scale(0.95);
    opacity: 0.25;
  }
  68% {
    /* Flight glide (~520ms) */
    transform: translate3d(-10px, 4px, -4px) rotate(-1.2deg) scale(0.985);
    opacity: 0.85;
  }
  89% {
    /* Beat 2 Impact Land Peak (~685ms): Slap on deck */
    transform: translate3d(0, 3px, 0) rotate(0.4deg) scale(1.018);
    box-shadow: 0 0 28px rgba(242, 142, 204, 0.5), 0 16px 36px rgba(10, 3, 15, 0.6);
    border-color: rgba(242, 142, 204, 0.7);
    opacity: 1;
  }
  100% {
    /* Rest settled (~770ms) */
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    box-shadow: 0 12px 32px rgba(10, 3, 15, 0.45);
    border-color: rgba(242, 142, 204, 0.35);
    opacity: 1;
  }
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fuzzy-blush);
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(242, 142, 204, 0.15);
  border-radius: var(--radius-full);
}

.badge-icon {
  width: 13px;
  height: 13px;
}

.dispenser-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 135px;
}

.disp-headline {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

.disp-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.disp-illustration {
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.vignette-svg {
  width: 70px;
  height: 70px;
  color: var(--primary-pink);
  filter: drop-shadow(0 0 12px var(--fuzzy-glow));
}

.vignette-caption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fuzzy-blush);
}

.dispenser-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s var(--smooth-ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.next-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--primary-pink);
}

.next-btn:active {
  transform: scale(0.95);
}

/* SECTION 3: Pop the Cramp */
.bubble-section {
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
}

.bubble-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.text-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

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

.inline-icon {
  width: 13px;
  height: 13px;
}

.cramp-tracker {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tracker-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
}

.tracker-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fuzzy-blush);
}

.tracker-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tracker-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
  border-radius: var(--radius-full);
  transition: width 0.3s var(--smooth-ease);
  box-shadow: 0 0 10px var(--fuzzy-glow);
}

.bubbles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 6px 0;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
}

.bubble-btn {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55) 0%, rgba(242, 142, 204, 0.4) 45%, rgba(142, 69, 196, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.65), 0 0 10px rgba(242, 142, 204, 0.2);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s var(--spring-bounce), background 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.bubble-btn:focus,
.bubble-btn:focus-visible {
  outline: none !important;
}

.bubble-btn:active {
  transform: scale(0.85);
}

@keyframes popBurst {
  0% { transform: scale(1); }
  35% { transform: scale(0.76); }
  75% { transform: scale(0.92); }
  100% { transform: scale(0.86); }
}

.bubble-btn.popped {
  animation: popBurst 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  background: radial-gradient(circle at 50% 50%, rgba(26, 10, 34, 0.95) 0%, rgba(14, 5, 18, 0.98) 100%);
  border-color: rgba(242, 142, 204, 0.15);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(255, 255, 255, 0.04);
}

.bubble-btn.popped::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-pink);
  opacity: 0.35;
  box-shadow: 0 0 8px var(--fuzzy-glow);
}

/* SECTION 4: Warm Compress Thumb-Rest */
.warmth-section {
  display: flex;
  flex-direction: column;
}

.warmth-pad-card {
  background: linear-gradient(165deg, rgba(58, 22, 72, 0.85) 0%, rgba(30, 11, 38, 0.95) 100%);
  border: 1px solid rgba(242, 142, 204, 0.35);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: 0 12px 32px rgba(10, 3, 15, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.warmth-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-pink);
  filter: drop-shadow(0 0 10px var(--fuzzy-glow));
}

.warmth-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
}

.warmth-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.warmth-interactive-zone {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.pad-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--primary-pink);
  opacity: 0.2;
  transition: all 0.4s var(--smooth-ease);
}

.ring-1 { inset: 0; }
.ring-2 { inset: -14px; opacity: 0.12; }
.ring-3 { inset: -28px; opacity: 0.06; }

.warmth-interactive-zone.holding .ring-1 {
  animation: ringPulse 1.6s infinite ease-out;
}
.warmth-interactive-zone.holding .ring-2 {
  animation: ringPulse 1.6s 0.3s infinite ease-out;
}
.warmth-interactive-zone.holding .ring-3 {
  animation: ringPulse 1.6s 0.6s infinite ease-out;
}

@keyframes ringPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.pad-center {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 175, 230, 0.4) 0%, rgba(185, 105, 230, 0.3) 60%, rgba(142, 69, 196, 0.5) 100%);
  border: 2px solid var(--primary-pink);
  box-shadow: 0 0 24px var(--fuzzy-glow), inset 0 2px 8px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s var(--spring-bounce);
}

.warmth-interactive-zone.holding .pad-center {
  transform: scale(0.94);
  background: radial-gradient(circle at 35% 35%, rgba(255, 200, 240, 0.65) 0%, rgba(242, 142, 204, 0.5) 50%, rgba(185, 105, 230, 0.6) 100%);
  box-shadow: 0 0 35px var(--primary-pink), inset 0 2px 10px rgba(255, 255, 255, 0.8);
}

.fingerprint-icon {
  width: 32px;
  height: 32px;
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.pad-action-text {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.warmth-feedback {
  font-size: 0.86rem;
  font-style: italic;
  color: var(--fuzzy-blush);
  min-height: 22px;
  transition: all 0.3s ease;
}

/* Footer */
.app-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0 10px 0;
}

.footer-heart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(242, 142, 204, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-pink);
}

.footer-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
