* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#app {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.header h1 {
  font-size: 1.5rem;
  color: #4a90d9;
  font-weight: 700;
}

.logo {
  height: 36px;
  width: auto;
}

.ai-notice {
  font-size: 0.7rem;
  color: #999;
  text-align: center;
  margin-top: 2px;
  margin-bottom: 8px;
  font-style: italic;
}

.counter {
  font-size: 0.85rem;
  color: #999;
  margin-top: 4px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease;
  /* Fixed-height layout so the action buttons sit at the same Y position
     for every profile — no chasing the Like/Pass buttons around. */
  display: flex;
  flex-direction: column;
  min-height: 540px;
  /* needed for absolutely positioned overlays (e.g. hot-flash animation) */
  position: relative;
}

.card-inner {
  flex: 1;
}

.card.exit-left {
  transform: translateX(-120%);
  opacity: 0;
}

.card.exit-right {
  transform: translateX(120%);
  opacity: 0;
}

.card-inner {
  padding: 24px;
  text-align: center;
}

/* Avatar */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  background: #eee;
}

.name {
  font-size: 1.35rem;
  font-weight: 600;
  color: #222;
}

.age {
  color: #666;
  font-weight: 400;
}

.location {
  font-size: 0.9rem;
  color: #999;
  margin-top: 2px;
}

.bio {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
  white-space: pre-wrap;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}
.bio.bio-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}

.tag {
  display: inline-block;
  background: #e3f0fc;
  color: #4a90d9;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 16px;
  font-weight: 500;
}

/* Expanded details */
.details {
  margin-top: 18px;
  text-align: left;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.detail-row {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #555;
}

.detail-label {
  font-weight: 600;
  color: #333;
}

/* Photo gallery */
.photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.photo {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #eee;
  cursor: pointer;
  transition: filter 0.15s;
}

.photo:hover {
  filter: brightness(0.9);
}

/* Pathology traits */
.pathology-group {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: background 0.15s, border-color 0.15s;
}

.pathology-active {
  background: #e3f0fc;
  border-color: #4a90d9;
}

.pathology-group summary {
  list-style: none;
}

.pathology-group summary::marker,
.pathology-group summary::-webkit-details-marker {
  display: none;
}

.pathology-group summary::before {
  content: "\25B6\00a0";
  font-size: 0.7rem;
}

.pathology-group[open] summary::before {
  content: "\25BC\00a0";
}

.pathology-trait {
  display: block;
  font-size: 0.82rem;
  color: #555;
  padding: 3px 0;
  cursor: pointer;
}

.pathology-trait input {
  margin-right: 6px;
  cursor: pointer;
}

/* Bucket browser */
.bucket-thumb:hover {
  border-color: #4a90d9 !important;
  filter: brightness(0.9);
}

/* Profile video */
.profile-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Buttons */
.actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
}

.actions button {
  flex: 1;
  padding: 14px 8px;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: filter 0.15s;
}

.actions button:hover {
  filter: brightness(0.9);
}

.btn-reject,
.btn-view,
.btn-accept {
  padding: 14px 8px;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: filter 0.15s;
  font-family: inherit;
}

.btn-reject:hover,
.btn-view:hover,
.btn-accept:hover {
  filter: brightness(0.9);
}

/* Thermal pairing: Hot = warm red, Not = cool blue.
   The "Hot/Not" wording is a temperature pun, so the colours
   reinforce the metaphor rather than the traffic-light convention. */
.btn-reject {
  background: #1e88e5;  /* cool blue, "Not" */
}

.btn-view {
  background: #78909c;
}

.btn-accept {
  background: #e53935;  /* warm red, "Hot" */
}

/* End screen */
.end-screen {
  text-align: center;
  padding: 40px 20px;
}

.end-screen h2 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 16px;
}

.end-screen .stat {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 8px;
}

.end-screen .stat strong {
  color: #4a90d9;
}

.end-screen button {
  margin-top: 24px;
  padding: 14px 36px;
  border: none;
  border-radius: 24px;
  background: #4a90d9;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.end-screen button:hover {
  filter: brightness(0.9);
}

/* Navigation */
.nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.nav-btn {
  padding: 8px 20px;
  border: 2px solid #4a90d9;
  border-radius: 24px;
  background: #fff;
  color: #4a90d9;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.nav-btn.active {
  background: #4a90d9;
  color: #fff;
}

.badge {
  display: inline-block;
  background: #ef5350;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
  margin-left: 4px;
  vertical-align: middle;
}

/* Matches list */
.matches-list {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.match-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.match-row:last-child {
  border-bottom: none;
}

.match-row:hover {
  background: #fafafa;
}

.match-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.match-info {
  flex: 1;
  margin-left: 14px;
  min-width: 0;
}

.match-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
}

.match-preview {
  font-size: 0.82rem;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-preview-thumb {
  height: 32px;
  width: 32px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
}

.match-badge {
  display: inline-block;
  background: #4a90d9;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Chat view */
.chat-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 70vh;
  max-height: 600px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.chat-back {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #4a90d9;
  padding: 0 8px 0 0;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.chat-header-name {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  margin-left: 10px;
}

.chat-spicy-toggle {
  position: relative;
  margin-left: auto;       /* push to the right of the header */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.15s, transform 0.05s, box-shadow 0.25s;
}
.chat-spicy-toggle .chat-spicy-emoji {
  font-size: 1.05rem;
  line-height: 1;
  transition: filter 0.2s, opacity 0.2s;
}
.chat-spicy-toggle.locked { cursor: default; }
.chat-spicy-toggle.locked .chat-spicy-emoji {
  filter: grayscale(1);
  opacity: 0.45;
}
.chat-spicy-toggle.unlocked .chat-spicy-emoji {
  filter: none;
  opacity: 1;
}
.chat-spicy-toggle.unlocked:hover { background: #e6e6e6; }
.chat-spicy-toggle.unlocked:active { transform: scale(0.94); }
.chat-spicy-toggle.on {
  background: rgba(239, 83, 80, 0.18);
}
.chat-spicy-toggle.on:hover { background: rgba(239, 83, 80, 0.30); }

.chat-spicy-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg);   /* progress starts at the top */
}
.chat-spicy-ring-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.10);
  stroke-width: 2.5;
}
.chat-spicy-ring-fg {
  fill: none;
  stroke: #ef5350;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s ease;
}

@keyframes chat-spicy-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0    rgba(239, 83, 80, 0.55); }
  60%  { transform: scale(1.22); box-shadow: 0 0 0 14px rgba(239, 83, 80, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0    rgba(239, 83, 80, 0); }
}
.chat-spicy-toggle.pulse-once { animation: chat-spicy-pulse 0.65s ease; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-user {
  align-self: flex-end;
  background: #4a90d9;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-assistant {
  align-self: flex-start;
  background: #f0f0f0;
  color: #333;
  border-bottom-left-radius: 4px;
}

/* TTS play button on assistant chat bubbles */
.chat-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(74, 144, 217, 0.18);
  color: #4a90d9;
  font-size: 0.7rem;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.12s, transform 0.05s;
  padding: 0;
  line-height: 1;
}
.chat-play-btn:hover { background: rgba(74, 144, 217, 0.30); }
.chat-play-btn:active { transform: scale(0.92); }
.chat-play-btn:disabled { opacity: 0.6; cursor: progress; }

.chat-image-bubble {
  padding: 4px;
  background: #f0f0f0;
}

.chat-image {
  max-width: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.chat-input:focus {
  border-color: #4a90d9;
}

.chat-send {
  padding: 12px 22px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-send:hover {
  filter: brightness(0.9);
}

/* Mic button — voice input via ElevenLabs Scribe */
.chat-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #555;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.05s;
  padding: 0;
  line-height: 1;
}
.chat-mic:hover { background: #e6e6e6; }
.chat-mic:active { transform: scale(0.94); }
.chat-mic[data-state="recording"] {
  background: #ef5350;
  color: #fff;
  animation: chat-mic-pulse 1.0s ease-in-out infinite;
}
.chat-mic.on {
  background: rgba(74, 144, 217, 0.18);
  color: #4a90d9;
}
.chat-mic.on:hover { background: rgba(74, 144, 217, 0.30); }
.chat-mic:disabled { opacity: 0.6; cursor: progress; }

/* Listen toggle — desaturate + fade the emoji when off so it visibly
   reads as inactive, even though the button itself is still tappable. */
.chat-listen {
  filter: grayscale(0.85);
  opacity: 0.55;
}
.chat-listen.on {
  filter: none;
  opacity: 1;
}

/* Audio-only bubble — used for both user voice messages and assistant
   audio replies. Background colour comes from .chat-user / .chat-assistant. */
.chat-audio-bubble {
  padding: 6px 8px;
}
.chat-audio-bubble audio {
  display: block;
  max-width: 240px;
  height: 36px;
}

/* Image with text/audio caption — text or audio control sits BELOW the image. */
.chat-image-with-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  background: #f0f0f0;
}
.chat-image-with-caption .chat-image {
  border-radius: 10px;
}
.chat-image-with-caption .chat-caption {
  padding: 6px 10px 4px;
  font-size: 0.95rem;
  color: #333;
}
.chat-image-with-caption .chat-caption .chat-caption-text {
  display: block;
  line-height: 1.35;
}
.chat-image-with-caption .chat-caption audio {
  display: block;
  width: 100%;
  height: 32px;
}

/* "Listen" button on assistant bubbles before audio is generated. */
.chat-play-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 18px;
  border: none;
  background: rgba(74, 144, 217, 0.18);
  color: #2c5282;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.chat-play-btn-large:hover { background: rgba(74, 144, 217, 0.30); }
.chat-play-btn-large:disabled { opacity: 0.6; cursor: progress; }
@keyframes chat-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(239, 83, 80, 0); }
}

/* Typing indicator */
.typing-indicator {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Refresh hint */
.chat-refresh-hint {
  align-self: center;
  font-size: 0.8rem;
  color: #4a90d9;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 24px;
  background: #e3f0fc;
  margin-top: 4px;
}

.chat-refresh-hint:hover {
  filter: brightness(0.95);
}

/* Settings */
.nav-settings {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #999;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.15s;
}

.nav-settings:hover {
  color: #4a90d9;
}

.settings-field {
  margin-bottom: 14px;
  text-align: left;
}

.settings-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

/* Mute the label text when its contained checkbox is disabled (e.g. the
   per-gender rows when Show All is on). Uses :has() — supported in all
   modern browsers since late 2023. */
.settings-label:has(input[type="checkbox"]:disabled) {
  color: #aaa;
  opacity: 0.6;
}

.settings-input,
.settings-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #fff;
}

.settings-input:focus,
.settings-select:focus {
  border-color: #4a90d9;
}

/* Pill selectors */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid #ddd;
  border-radius: 16px;
  background: #fff;
  color: #555;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.pill:hover {
  border-color: #4a90d9;
}

.pill-selected {
  background: #e3f0fc;
  border-color: #4a90d9;
  color: #4a90d9;
}

.pill-group-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.settings-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.hide-toggle {
  font-size: 0.75rem;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hide-toggle input {
  margin: 0;
  cursor: pointer;
}

.btn-generate {
  padding: 12px 28px;
  border: 2px solid #4a90d9;
  border-radius: 24px;
  background: #fff;
  color: #4a90d9;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.btn-generate:hover {
  background: #4a90d9;
  color: #fff;
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-reset {
  padding: 10px 24px;
  border: 1.5px solid #ef5350;
  border-radius: 24px;
  background: #fff;
  color: #ef5350;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.btn-reset:hover {
  background: #ef5350;
  color: #fff;
}

/* --- Credit balance chip --- */

.credit-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin: 0 4px;
  border-radius: 12px;
  background: #fff4d6;
  color: #8a6d1a;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e8d88c;
  user-select: none;
}
.credit-chip:hover { background: #ffe9a8; }

/* --- Modal overlay (reused for out-of-credits + credits panel) --- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Sits above the UK splash (z-index 2000) so login/register stays usable. */
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.modal-card h3 { margin: 0 0 10px; color: #222; }
.modal-card p { margin: 0 0 16px; color: #555; font-size: 0.9rem; }
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-actions button { width: 100%; }

.account-tabs .tab-btn { flex: 1; }
.account-tabs .tab-active { background: #4a90d9; color: #fff; border-color: #4a90d9; }

/* Age-gate splash (UK users) */
.splash-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.splash-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}
.splash-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #222;
  font-weight: 700;
}
.splash-card > p {
  margin: 0 0 16px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}
.splash-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
  font-size: 0.85rem;
  color: #666;
}
.splash-points li {
  padding: 4px 0 4px 22px;
  position: relative;
}
.splash-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: 700;
}
.splash-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-primary {
  background: #4a90d9;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: #3a7bc1; }
.btn-secondary {
  background: #f0f0f0;
  color: #444;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover { background: #e0e0e0; }

/* Blur the app behind the splash */
.content-blurred {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}
.splash-footer {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: #888;
}
.splash-footer a {
  color: #4a90d9;
  text-decoration: none;
}
.splash-footer a:hover { text-decoration: underline; }

/* =============================================================
 * HOT_ANIMATION — experimental fire flash on Hot
 * --------------------------------------------------------------
 * Self-contained. Remove this whole block + the matching JS block
 * marked "HOT_ANIMATION" in app.js to fully disable the effect.
 * ============================================================= */
.hot-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(circle at center,
    rgba(255, 120, 50, 0.35) 0%,
    rgba(255, 80, 0, 0) 65%);
  animation: hot-flash-fade 0.9s ease-out forwards;
}
.hot-flash .hot-emoji {
  font-size: 120px;
  filter: drop-shadow(0 4px 12px rgba(255, 100, 0, 0.6));
  animation: hot-emoji-pop 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.0) forwards;
}
@keyframes hot-flash-fade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes hot-emoji-pop {
  0%   { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  25%  { transform: scale(1.3) rotate(8deg);  opacity: 1; }
  100% { transform: scale(1.9) rotate(0deg);  opacity: 0; }
}
/* === END HOT_ANIMATION === */

/* =============================================================
 * NOT_ANIMATION — red wash + ✕ pulse on Not
 * --------------------------------------------------------------
 * Mirrors HOT_ANIMATION: an overlay sits on top of the card while
 * the existing .exit-left slide animates it off-screen.
 * Self-contained. Remove this whole block + the matching JS block
 * marked "NOT_ANIMATION" in app.js to fully disable the effect.
 * ============================================================= */
.not-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(circle at center,
    rgba(60, 130, 220, 0.30) 0%,
    rgba(60, 130, 220, 0) 65%);
  animation: not-flash-fade 0.35s ease-out forwards;
}
.not-flash .not-x {
  font-size: 110px;
  font-weight: 700;
  color: #1e88e5;
  text-shadow: 0 2px 8px rgba(30, 100, 180, 0.55);
  animation: not-x-pop 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.0) forwards;
}
@keyframes not-flash-fade {
  0%   { opacity: 0; }
  35%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes not-x-pop {
  0%   { transform: scale(0.5);                 opacity: 0; }
  40%  { transform: scale(1.15) rotate(-3deg);  opacity: 1; }
  100% { transform: scale(1.4)  rotate(3deg);   opacity: 0; }
}
/* === END NOT_ANIMATION === */
