:root {
  color-scheme: light;
  --honey: #f7c948;
  --amber: #f59f0b;
  --pollen: #ffe066;
  --charcoal: #1f2933;
  --ink: #102a43;
  --cream: #fff8e1;
  --shadow: rgba(16, 42, 67, 0.18);
  --card: #fffdf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbe6, #fff3c4 45%, #ffefb0 100%);
  min-height: 100vh;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'><polygon points='18,3 29,9 29,21 18,27 7,21 7,9' fill='%23f7c948' stroke='%23b08900' stroke-width='2'/><polygon points='18,9 24.5,12.5 24.5,18.5 18,22 11.5,18.5 11.5,12.5' fill='%23ffe066' stroke='%23d8a600' stroke-width='1.5'/></svg>") 10 10, auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(120deg, var(--honey), var(--pollen));
  box-shadow: 0 10px 30px var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.8rem;
}

.brand p {
  margin: 0.25rem 0 0;
  font-weight: 500;
}

.logo {
  font-size: 2.4rem;
}

.menu-btn {
  border: none;
  background: var(--charcoal);
  color: white;
  font-size: 1.1rem;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--shadow);
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: #fffdf2;
  box-shadow: -12px 0 30px var(--shadow);
  padding: 2rem;
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-panel.show {
  transform: translateX(0);
}

.menu-close {
  align-self: flex-end;
  border: none;
  background: #f59f0b;
  color: #1f2933;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

.menu-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7a5d00;
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  background: #fff1b8;
}

.menu-link:hover {
  background: #ffe08a;
}

.app {
  display: flex;
  justify-content: center;
  padding: 2.5rem;
}

.app--with-sidebar {
  align-items: flex-start;
  gap: 2.5rem;
}

.info-card {
  background: var(--card);
  padding: 1.8rem;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px var(--shadow);
}

.info-card h2 {
  margin-top: 0;
}

.info-card ul {
  padding-left: 1.2rem;
}

.swipe-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.swipe-area--full {
  width: 100%;
  padding: 0 0 2.5rem;
}

.matches-panel {
  width: min(280px, 90vw);
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px var(--shadow);
  position: sticky;
  top: 1.5rem;
}

.matches-panel h2 {
  margin-top: 0;
}

.matches-subtitle {
  margin-top: 0.25rem;
  color: #7a5d00;
  font-weight: 600;
}

.matches-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 420px;
  overflow-y: auto;
}

.matches-list li:hover {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M12 21s-7-4.35-9.5-8.3C.8 9.9 2.2 6.5 5.5 6.1c2-.2 3.6.8 4.5 2.2.9-1.4 2.5-2.4 4.5-2.2 3.3.4 4.7 3.8 3 6.6C19 16.7 12 21 12 21z' fill='%23ff7aa2' stroke='%23b42359' stroke-width='1.2'/></svg>") 6 6, pointer;
  cursor: none;
}

.matches-list li {
  background: #fff1b8;
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  color: #7a5d00;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.matches-list span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #9f6b00;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-size: contain;
  background-repeat: no-repeat;
}

.custom-cursor.show {
  opacity: 1;
}

.custom-cursor.heart {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24'><path d='M12 21s-7-4.35-9.5-8.3C.8 9.9 2.2 6.5 5.5 6.1c2-.2 3.6.8 4.5 2.2.9-1.4 2.5-2.4 4.5-2.2 3.3.4 4.7 3.8 3 6.6C19 16.7 12 21 12 21z' fill='%23ff7aa2' stroke='%23b42359' stroke-width='1.2'/></svg>");
  animation: heartPulse 0.8s ease-in-out infinite;
}

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

.matches-empty {
  margin-top: 0.5rem;
  color: #7a5d00;
  font-weight: 600;
}

.card {
  width: min(520px, 92vw);
  background: var(--card);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
  position: relative;
  transition: transform 0.3s ease;
}

.stamp {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 235, 153, 0.9);
  border: 2px solid #f59f0b;
  color: #7a5d00;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.stamp.show {
  opacity: 1;
  transform: scale(1);
}

.card-image {
  height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card.swipe-like {
  animation: swipeLike 0.45s ease forwards;
}

.card.swipe-nope {
  animation: swipeNope 0.45s ease forwards;
}

@keyframes swipeLike {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  60% {
    transform: translateX(60px) rotate(6deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes swipeNope {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  60% {
    transform: translateX(-60px) rotate(-6deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
}

.card-content {
  padding: 1.5rem;
}

.tagline {
  font-weight: 600;
  margin-top: 0.2rem;
  color: #7a5d00;
}

.fact {
  margin-top: 1rem;
  background: #fff4b8;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px dashed #f2b705;
}

.fact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 700;
  color: #9f6b00;
}

.actions {
  display: flex;
  gap: 1rem;
}

.btn {
  border: none;
  padding: 0.75rem 1.3rem;
  font-size: 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px var(--shadow);
}

.btn.nope {
  background: #fca5a5;
  color: #7f1d1d;
}

.btn.like {
  background: #86efac;
  color: #14532d;
}

.btn.info {
  background: #fde68a;
  color: #7c2d12;
}

.status {
  min-height: 2rem;
  font-weight: 600;
  color: #7a5d00;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #7a5d00;
}

.sound-toggle input {
  width: 1.1rem;
  height: 1.1rem;
}

.bee-trail {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #f59f0b 40%, #1f2933 45%, #1f2933 65%, #f59f0b 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: trail 0.6s ease forwards;
  z-index: 3;
}

@keyframes trail {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.3);
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--card);
  padding: 2rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px var(--shadow);
  text-align: center;
  max-width: 420px;
}

.preview-card {
  text-align: left;
  width: min(360px, 90vw);
  padding: 1.5rem;
  position: relative;
}

.preview-card .menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.preview-image {
  height: 200px;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
}

.match-effects {
  position: absolute;
  width: min(520px, 92vw);
  height: 360px;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
}

.match-effects.show {
  display: flex;
  animation: popGlow 0.8s ease;
}

.match-effects .burst {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid rgba(255, 210, 76, 0.7);
  animation: burst 0.8s ease forwards;
}

.match-effects .burst:nth-child(2) {
  width: 180px;
  height: 180px;
  border-color: rgba(245, 159, 11, 0.6);
  animation-delay: 0.1s;
}

.match-effects .burst:nth-child(3) {
  width: 240px;
  height: 240px;
  border-color: rgba(255, 238, 176, 0.9);
  animation-delay: 0.2s;
}

.match-effects .burst:nth-child(4) {
  width: 300px;
  height: 300px;
  border-color: rgba(16, 42, 67, 0.2);
  animation-delay: 0.25s;
}

@keyframes burst {
  from {
    opacity: 1;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes popGlow {
  0% {
    filter: drop-shadow(0 0 0 rgba(245, 159, 11, 0.4));
  }
  70% {
    filter: drop-shadow(0 0 20px rgba(245, 159, 11, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(245, 159, 11, 0.2));
  }
}

.footer {
  text-align: center;
  padding: 2rem;
  color: #6b4f00;
}

.footer a {
  color: #8a5b00;
  font-weight: 700;
}

.page-section {
  padding: 1.5rem 2.5rem 2.5rem;
}

.page-hero {
  padding: 3rem 2.5rem 2.5rem;
}

.page-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.page-card ul {
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .app {
    flex-direction: column;
  }

  .matches-panel {
    position: static;
    width: 100%;
  }
}
