* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --blue-1: #0ea5e9;
  --blue-2: #0284c7;
  --blue-deep: #075985;
  --gold: #f59e0b;
  --green: #4ade80;
  --pink: #f472b6;
  --bg-1: #0c4a6e;
  --bg-2: #0369a1;
  --card: #ffffff;
  --text: #0f172a;
  --text-soft: #64748b;
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.25);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Nunito", system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: #0c4a6e;
}

/* Background scene */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.scene svg {
  width: 100%;
  height: 100%;
  display: block;
}
.custom-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  pointer-events: none;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 90px;
  position: relative;
  z-index: 1;
}

/* Header */
.app-header {
  padding: 16px 16px 8px;
  color: white;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-spacer { width: 40px; flex-shrink: 0; }
.header-titles { flex: 1; text-align: center; }
.app-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.1;
}
.header-sub {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.header-gear {
  width: 40px; height: 40px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-gear:active { transform: scale(0.92); }

/* Level card */
.level-card {
  margin: 12px 16px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 20px;
  padding: 20px;
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.level-card::before {
  content: '🎣';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 120px;
  opacity: 0.15;
  transform: rotate(15deg);
}
.level-row { display: flex; justify-content: space-between; align-items: baseline; }
.level-num { font-size: 36px; font-weight: 900; line-height: 1; }
.level-title { font-size: 14px; opacity: 0.9; font-weight: 600; }
.angler-name { font-size: 18px; font-weight: 700; margin-top: 4px; }
.xp-bar {
  margin-top: 12px;
  height: 12px;
  background: rgba(255,255,255,0.3);
  border-radius: 6px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: white;
  border-radius: 6px;
  transition: width 0.6s ease;
}
.xp-text { font-size: 12px; opacity: 0.9; margin-top: 6px; font-weight: 600; }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-top: 12px;
}
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}
.stat-card:active { transform: scale(0.97); }
.stat-num { font-size: 24px; font-weight: 800; color: var(--blue-2); }
.stat-label { font-size: 11px; color: var(--text-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* Section */
.section {
  margin: 24px 16px 8px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.section-link { font-size: 13px; opacity: 0.9; font-weight: 600; cursor: pointer; }
.section-link:active { opacity: 0.7; }

/* Home Challenges preview card */
.challenge-card {
  margin: 16px 16px 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.15s;
}
.challenge-card:active { transform: scale(0.98); }
.challenge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #78350f;
  margin-bottom: 8px;
}
.challenge-card-title { font-size: 16px; font-weight: 800; }
.challenge-card-count { font-size: 18px; font-weight: 900; }
.challenge-progress-bar {
  height: 10px;
  background: rgba(120, 53, 15, 0.2);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}
.challenge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  border-radius: 5px;
  transition: width 0.5s ease;
}
.challenge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  margin-bottom: 8px;
}
.challenge-row-icon {
  font-size: 28px;
  width: 40px; height: 40px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.challenge-row-icon.locked { opacity: 0.5; filter: grayscale(0.4); }
.challenge-row-info { flex: 1; min-width: 0; }
.challenge-row-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #92400e;
}
.challenge-row-unlocked .challenge-row-label { color: #15803d; }
.challenge-row-name { font-weight: 800; font-size: 14px; color: #1e293b; margin-top: 2px; }
.challenge-row-desc { font-size: 11px; color: #64748b; margin-top: 2px; }
.challenge-row-xp {
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
  background: white;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.challenge-complete {
  background: rgba(255, 255, 255, 0.7);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 8px;
  color: #78350f;
}
.challenge-card-link {
  font-size: 12px;
  font-weight: 800;
  color: #78350f;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Catch card */
.catch-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.catch-card {
  background: white;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.catch-card:active { transform: scale(0.97); }
.catch-photo {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}
.catch-photo-placeholder {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #bae6fd, #7dd3fc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.catch-photo-placeholder svg, .catch-photo-placeholder .fish-svg {
  width: 100%; height: auto; padding: 4px;
}
.fish-icon-wrap, .dex-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fish-svg { display: block; }

.catch-info { flex: 1; min-width: 0; }
.catch-species { font-weight: 700; font-size: 15px; }
.catch-stats { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.catch-date { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.rarity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.empty-state {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  margin: 16px;
  color: white;
}
.empty-state .emoji { font-size: 48px; margin-bottom: 8px; }
.empty-state .msg { font-size: 14px; opacity: 0.95; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: white;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  max-width: 480px;
  margin: 0 auto;
  z-index: 100;
}
.nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 8px 4px;
  color: var(--text-soft);
  transition: color 0.2s;
  font-family: inherit;
  flex: 1;
  min-width: 0;
}
.nav-btn .nav-icon { font-size: 20px; }
.nav-btn .nav-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.nav-btn.active { color: var(--blue-2); }
.nav-btn-catch {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white !important;
  width: 60px; height: 60px;
  border-radius: 30px;
  margin-top: -22px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.nav-btn-catch:active { transform: scale(0.92); }

/* Mode toggle (Catches / Trips) */
.mode-toggle {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 8px;
}
.mode-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mode-btn.active { background: white; color: var(--blue-2); }

/* Log controls */
.log-controls {
  padding: 0 16px 8px;
}
.search-input {
  width: 100%;
  margin-bottom: 8px;
}

/* Trips */
.trips-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 14px; }
.trip-card {
  background: white;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.trip-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.trip-date { font-weight: 800; font-size: 16px; color: var(--text); }
.trip-location { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.trip-stats { display: flex; gap: 10px; }
.trip-stat { text-align: center; min-width: 44px; }
.trip-stat .num { font-size: 18px; font-weight: 800; color: var(--blue-2); line-height: 1; }
.trip-stat .lbl { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; font-weight: 600; }
.trip-catches { display: flex; flex-direction: column; gap: 8px; }
.trip-catches .catch-card {
  box-shadow: none;
  background: #f8fafc;
}

/* Dex / Guide */
.dex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 16px;
}
.dex-card {
  background: white;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
  overflow: hidden;
}
.dex-card:active { transform: scale(0.96); }
.dex-card.locked {
  background: rgba(255,255,255,0.55);
  color: rgba(15, 23, 42, 0.4);
}
.dex-icon {
  height: 70px;
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.dex-icon.has-photo {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}
.dex-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.dex-card.locked .dex-icon { opacity: 0.55; }
.dex-name { font-size: 11px; font-weight: 700; line-height: 1.2; min-height: 26px; display: flex; align-items: center; justify-content: center; }
.dex-rarity-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
}
.dex-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gold);
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 6px;
  min-width: 18px;
}

/* Filters */
.dex-filters {
  display: flex;
  gap: 6px;
  padding: 0 16px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dex-filter {
  background: rgba(255,255,255,0.25);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dex-filter.active {
  background: white;
  color: var(--blue-2);
}

/* Tips */
.tips-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 16px 12px;
}
.tips-cat {
  background: rgba(255,255,255,0.92);
  border: 3px solid transparent;
  border-radius: 14px;
  padding: 12px 6px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s;
  --cat-color: #3b82f6;
}
.tips-cat:active { transform: scale(0.97); }
.tips-cat.active {
  border-color: var(--cat-color);
  background: white;
}
.tips-cat-icon { font-size: 24px; }
.tips-cat-name { font-size: 11px; font-weight: 700; color: var(--text); text-align: center; }

.tips-list { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.tip-card {
  background: white;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.tip-card:active { transform: scale(0.98); }
.tip-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.tip-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}
.tip-card-info { flex: 1; min-width: 0; }
.tip-card-title { font-weight: 800; font-size: 15px; }
.tip-card-level { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-top: 2px; }
.tip-card-arrow { font-size: 24px; color: var(--text-soft); font-weight: 800; }
.tip-card-summary { font-size: 13px; color: var(--text-soft); line-height: 1.4; }

/* Tip detail modal */
.tip-hero {
  padding: 30px 20px;
  text-align: center;
  color: white;
}
.tip-hero-icon { font-size: 56px; margin-bottom: 6px; }
.tip-hero-level { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.tip-detail { padding: 20px; }
.tip-summary {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.tip-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.tip-steps li {
  counter-increment: step;
  background: #f8fafc;
  padding: 14px 14px 14px 50px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
}
.tip-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  background: var(--blue-2);
  color: white;
  width: 26px; height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.knot-diagram {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.knot-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.tip-steps .step-text {
  font-size: 14px;
  line-height: 1.45;
}

/* Achievements */
.ach-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ach-card {
  background: white;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}
.ach-card.locked {
  opacity: 0.7;
  background: rgba(255,255,255,0.7);
}
.ach-icon {
  font-size: 36px;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ach-card.locked .ach-icon {
  background: #e2e8f0;
  filter: grayscale(1);
}
.ach-info { flex: 1; }
.ach-name { font-weight: 700; font-size: 15px; }
.ach-desc { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.ach-xp { font-size: 11px; font-weight: 800; color: var(--gold); margin-top: 4px; }
.ach-check { font-size: 24px; color: var(--green); }

/* Coach (chat) */
.coach-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
}
.coach-header {
  flex-shrink: 0;
}
.coach-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.coach-avatar {
  font-size: 32px;
  background: white;
  width: 50px; height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.coach-no-key {
  margin: 30px 16px;
  padding: 30px 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.coach-no-key-icon { font-size: 56px; margin-bottom: 10px; }
.coach-no-key-title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.coach-no-key-text { font-size: 14px; color: var(--text-soft); line-height: 1.4; }

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 200px);
  padding-bottom: 90px;
}
.chat-messages {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.coach-welcome {
  background: white;
  padding: 24px 20px;
  border-radius: 18px;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.coach-welcome-icon { font-size: 48px; margin-bottom: 8px; }
.coach-welcome-title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.coach-welcome-text { font-size: 14px; color: var(--text-soft); line-height: 1.45; }

.chat-message {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 95%;
}
.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-message.assistant {
  align-self: flex-start;
}
.chat-avatar {
  font-size: 18px;
  background: white;
  width: 32px; height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.chat-bubble {
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 280px;
  white-space: normal;
  word-wrap: break-word;
}
.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: white;
  border-bottom-right-radius: 6px;
}
.chat-message.assistant .chat-bubble {
  background: white;
  color: var(--text);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
}
.chat-paragraph + .chat-paragraph { margin-top: 8px; }

.typing-bubble {
  padding: 14px 18px !important;
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--text-soft);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

.quick-prompts {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-prompt {
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  transition: transform 0.15s;
}
.quick-prompt:active {
  transform: scale(0.98);
  background: white;
}

.chat-input-bar {
  position: fixed;
  bottom: 80px;
  left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(12,74,110,0.85) 30%);
  display: flex;
  gap: 8px;
  z-index: 50;
}
.chat-input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 22px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.chat-input:focus { outline: 2px solid var(--blue-1); }
.chat-send {
  width: 44px; height: 44px;
  border-radius: 22px;
  border: none;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
  font-family: inherit;
}
.chat-send:active { transform: scale(0.92); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-clear {
  align-self: center;
  margin: 8px 16px 12px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.25);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.modal {
  background: white;
  width: 100%;
  max-width: 480px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 20px;
}
.modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
.modal-title { font-size: 18px; font-weight: 800; }
.modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px; height: 32px;
  border-radius: 16px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

/* Form */
.form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.form-input, .form-select {
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: var(--text);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue-1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: white;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Photo input */
.photo-input-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 4/3;
  border: 2px dashed #cbd5e1;
}
.photo-input-wrap.has-photo { border: none; }
.photo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.photo-input-wrap:not(.has-photo) .photo-stage { cursor: pointer; }
.photo-stage.dragging { cursor: grabbing; }
.photo-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.photo-input-wrap.has-photo .photo-file-input { display: none; }
.crop-img {
  position: absolute;
  -webkit-user-drag: none;
  pointer-events: none;
}
.photo-placeholder { text-align: center; color: var(--text-soft); padding: 20px; }
.photo-placeholder .emoji { font-size: 48px; margin-bottom: 6px; }
.photo-placeholder .text { font-size: 14px; font-weight: 600; }
.photo-change-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.photo-change-btn:active { transform: scale(0.95); background: rgba(15, 23, 42, 0.9); }
.photo-crop-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.crop-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
  font-weight: 600;
}

/* Catch detail */
.catch-detail-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, #bae6fd, #7dd3fc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.catch-detail-photo-svg {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #bae6fd, #7dd3fc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.catch-detail-photo-svg svg, .catch-detail-photo-svg .fish-svg { max-width: 100%; height: auto; }
.species-hero {
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(135deg, #bae6fd, #7dd3fc);
  display: flex;
  align-items: center;
  justify-content: center;
}
.species-hero svg, .species-hero .fish-svg { max-width: 100%; height: auto; }
.species-hero.has-photo {
  padding: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.species-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catch-detail-info { padding: 20px; }
.catch-detail-info h2 { font-size: 24px; margin-bottom: 4px; }
.fact-card {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}
.fact-card .label { font-size: 11px; font-weight: 800; color: var(--blue-deep); text-transform: uppercase; letter-spacing: 0.5px; }
.fact-card .text { font-size: 14px; margin-top: 4px; line-height: 1.4; }
.bait-list { margin-top: 6px; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.bait-list li { margin: 2px 0; }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.detail-stat { background: #f8fafc; border-radius: 12px; padding: 12px; text-align: center; }
.detail-stat .num { font-size: 20px; font-weight: 800; color: var(--blue-2); }
.detail-stat .label { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.btn-danger {
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  font-family: inherit;
  width: 100%;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text);
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-secondary:active { transform: scale(0.97); background: #e2e8f0; }

/* Provider pills (AI provider selector) */
.provider-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.provider-pill {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  color: var(--text-soft);
}
.provider-pill.active {
  border-color: var(--blue-1);
  background: #eff6ff;
  color: var(--blue-deep);
}

/* Multi-line notes */
.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.4;
}

/* API key row + status */
.apikey-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
}
.apikey-status { font-weight: 600; }
.btn-link {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 4px;
}
.btn-link:active { opacity: 0.6; }

/* Notes block in catch detail */
.notes-block {
  margin-top: 12px;
  padding: 12px;
  background: #fefce8;
  border-left: 3px solid #fbbf24;
  border-radius: 8px;
}
.notes-label {
  font-size: 10px;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.notes-text {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* Species picker */
.species-picker-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: white;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  color: var(--text);
}
.species-picker-btn:active { transform: scale(0.99); }
.picker-label-empty { color: #94a3b8; }
.picker-label-set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.picker-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.picker-chevron {
  font-size: 22px;
  color: #94a3b8;
  font-weight: 800;
  flex-shrink: 0;
}

.picker-overlay { z-index: 250; }
.picker-modal {
  display: flex;
  flex-direction: column;
  height: 90vh;
}
.picker-search-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: white;
  position: sticky;
  top: 60px;
  z-index: 1;
}
.picker-search { width: 100%; }
.picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.picker-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 2px solid transparent;
  border-radius: 14px;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.picker-item:active { transform: scale(0.98); background: #f8fafc; }
.picker-item.selected {
  border-color: var(--blue-1);
  background: #eff6ff;
}
.picker-icon {
  width: 60px; height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-radius: 8px;
  overflow: hidden;
}
.picker-info { flex: 1; min-width: 0; }
.picker-name { font-weight: 700; font-size: 15px; }
.picker-family { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.picker-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}
.picker-custom-btn {
  margin: 8px 16px 16px;
  padding: 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.4px;
  display: flex;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.picker-custom-btn:active { transform: scale(0.98); }
.picker-custom-btn.picker-custom-empty {
  background: #f1f5f9;
  color: var(--text-soft);
  font-weight: 700;
  text-transform: none;
  box-shadow: none;
  border: 2px dashed #cbd5e1;
}

/* Cook button */
.btn-cook {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
}
.btn-cook:active { transform: scale(0.98); }

/* Release card */
.release-card {
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #cffafe, #67e8f9);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid #06b6d4;
}
.release-icon { font-size: 32px; flex-shrink: 0; }
.release-content { flex: 1; }
.release-title {
  font-weight: 800;
  font-size: 15px;
  color: #155e75;
  margin-bottom: 4px;
}
.release-text {
  font-size: 13px;
  color: #164e63;
  line-height: 1.45;
}

/* Recipes browser (in Tips tab) */
.recipes-grid {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recipe-browse-card {
  background: white;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.recipe-browse-card:active { transform: scale(0.98); }
.recipe-browse-emoji {
  width: 56px; height: 56px;
  font-size: 36px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recipe-browse-info { flex: 1; min-width: 0; }
.recipe-browse-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.recipe-browse-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.recipe-browse-pill {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.recipe-browse-species {
  font-size: 11px;
  color: var(--text-soft);
  font-style: italic;
}
.recipe-browse-arrow {
  font-size: 24px;
  color: var(--text-soft);
  font-weight: 800;
}

/* Recipe modal */
.recipe-modal { padding-bottom: 30px; }
.recipe-hero {
  padding: 30px 20px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}
.recipe-emoji { font-size: 60px; margin-bottom: 8px; }
.recipe-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #7c2d12;
  margin-bottom: 4px;
}
.recipe-species {
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.recipe-tagline {
  font-size: 15px;
  font-style: italic;
  color: #7c2d12;
  line-height: 1.4;
}
.recipe-meta {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.recipe-meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fef3c7;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}
.recipe-meta-icon { font-size: 16px; }
.recipe-warning {
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  font-size: 13px;
  color: #991b1b;
  font-weight: 600;
}
.recipe-section {
  padding: 12px 16px 0;
}
.recipe-section-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.recipe-ingredients {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.recipe-ingredients li {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  position: relative;
  padding-left: 36px;
}
.recipe-ingredients li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 14px;
  width: 14px; height: 14px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
}
.recipe-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recipe-steps li {
  counter-increment: step;
  background: #fff7ed;
  padding: 14px 14px 14px 50px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  border-left: 4px solid #fb923c;
}
.recipe-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  background: #ea580c;
  color: white;
  width: 28px; height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}
.recipe-tip {
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: #78350f;
}
.recipe-sustain {
  margin: 16px 16px 0;
  padding: 14px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 14px;
  border: 2px solid #10b981;
}
.recipe-sustain-title {
  font-size: 11px;
  font-weight: 800;
  color: #065f46;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.recipe-sustain-text {
  font-size: 13px;
  line-height: 1.45;
  color: #064e3b;
}

/* Share button */
.btn-share {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.btn-share:active { transform: scale(0.98); }

/* Share modal */
.share-modal { padding-bottom: 30px; }
.share-preview {
  padding: 16px 16px 0;
  background: linear-gradient(180deg, #f1f5f9, #ffffff);
}
.share-card-preview {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: block;
}
.share-card-draggable {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
.share-card-draggable.dragging { cursor: grabbing; }
.share-drag-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 8px;
  font-weight: 600;
}
.share-zoom-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px 0;
}
.zoom-btn {
  background: #f1f5f9;
  border: none;
  width: 56px; height: 44px;
  border-radius: 22px;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  color: var(--blue-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zoom-btn:active { transform: scale(0.92); background: #e2e8f0; }
.zoom-btn.zoom-reset {
  width: auto;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.share-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.share-actions .btn-primary,
.share-actions .btn-secondary {
  padding: 14px;
  font-size: 15px;
}
.share-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.4;
}
.share-loading {
  padding: 60px 20px;
  text-align: center;
}
.share-spinner {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--blue-1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.share-loading-text {
  font-weight: 600;
  color: var(--text-soft);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Identify button & status */
.btn-id {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}
.btn-id:active { transform: scale(0.98); }
.btn-id:disabled { opacity: 0.6; cursor: wait; }
.id-status:empty { display: none; }
.id-result {
  margin-top: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 10px;
  font-size: 14px;
}
.id-error {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 10px;
  font-size: 13px;
}

/* Toggle row */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}
.toggle-row input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--blue-2);
}

/* Toast / level up */
.toast-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 300;
}
.toast {
  background: white;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), toastOut 0.4s 2.6s forwards;
  max-width: 90%;
}
.toast.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }
.toast.blue { background: linear-gradient(135deg, var(--blue-1), var(--blue-2)); color: white; }
.toast .icon { font-size: 24px; }

/* Confetti / celebration */
.celebration-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  overflow: hidden;
}
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 2s ease-in forwards;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes toastIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(-30px); opacity: 0; } }
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.pop { animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
