html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #ffefd5, #ffcc00);
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
  color: #333;
  padding: 10px;
  box-sizing: border-box;
}

h1 {
  margin: 0 0 2px 0;
  font-size: 28px;
  font-family: 'Satisfy', cursive;
  color: #333;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  letter-spacing: 1px;
}

#mpStatus {
  display: none;
  font-size: 22px;
  margin: 5px 0 10px;
}

#difficultyContainer {
  margin: 0 auto;
  padding: 1px 0;
  text-align: center;
  display: grid !important;
  grid-template-columns: 1fr 140px;
  grid-template-rows: auto auto;
  gap: 4px;
  max-width: min(90vw, 600px);
  align-items: start;
  width: 100%;
}

.daily-puzzle-container {
  grid-column: 2;
  grid-row: 1 / 3;
  height: 100%;
  padding-left: 4px;
  width: 140px;
  min-width: 140px;
  position: relative;
  align-self: stretch;
  display: flex;
}

.game-modes {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  align-self: start;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 20px;
}

.difficultyRow {
  margin: 0;
  padding: 1px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 32px;
  width: fit-content;
}

/* Daily Puzzle Button - High Specificity */
#difficultyContainer .daily-puzzle-container #dailyBtn {
  width: 100%;
  height: 100%;
  min-height: 64px;
  font-size: 15px;
  font-weight: bold;
  background: linear-gradient(135deg, #ffdb4d, #ffb700);
  border: 2px solid #ffcc00;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 8px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  /* Reset any potential inherited styles */
  margin: 0;
  text-decoration: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#difficultyContainer .daily-puzzle-container #dailyBtn:hover {
  background: linear-gradient(135deg, #ffe066, #ffc61a);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#difficultyContainer .daily-puzzle-container #dailyBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #difficultyContainer {
    display: flex !important;
    flex-direction: column;  /* Stack vertically */
    gap: 4px;
    max-width: min(90vw, 600px);
    padding: 0 4px;
  }

  .game-modes {
    width: 100%;
    order: 1;  /* Show difficulty buttons first */
    padding-left: 0;
  }

  .daily-puzzle-container {
    width: 100%;  /* Full width */
    min-width: 100%;
    padding: 4px 0;
    order: 2;  /* Show Daily Buzzle button second */
  }

  #difficultyContainer .daily-puzzle-container #dailyBtn {
    min-height: 40px;  /* Thinner height */
    font-size: 13px;
    padding: 4px 8px;
  }

  .difficultyRow {
    justify-content: flex-start;
    gap: 2px;
  }

  .difficultyLabel {
    min-width: 60px;
    font-size: 12px;
  }

  .difficultySelection button {
    font-size: 11px;
    padding: 3px 4px;
    min-width: 40px;
  }
}

.difficultyLabel {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  color: #444;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 85px;
  text-align: right;
  padding-right: 8px;
  justify-content: flex-end;
}

.difficultySelection {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
}

.difficultySelection button {
  font-size: 13px;
  margin: 0;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(to bottom, #ffd633, #ffcc00);
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  min-width: 60px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.difficultySelection button:hover {
  background: linear-gradient(to bottom, #ffe066, #ffd633);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.difficultySelection button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.counter {
  font-size: 13px;
  margin: 1px 0;
  padding: 0;
}

.instructions {
  font-size: 13px;
  padding: 1px 0;
  margin: 0 auto;
  color: #555;
  max-width: min(90vw, 600px);
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

#boardContainer {
  width: min(90vw, 600px);
  height: min(90vw, 600px);
  margin: 4px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background-color: #fff;
  position: relative;
  transition: transform 0.2s;
}

#board {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#board tr::after {
  content: "";
  display: block;
  height: calc(100% / var(--gridSize));
  visibility: hidden;
}

#board td {
  position: relative;
  border: 1px solid #ccc;
  width: calc(100% / var(--gridSize));
  height: calc(100% / var(--gridSize));
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 4px;
  font-size: 1em;
}

.helper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 20px;
  color: red;
}

.solution {
  background-color: rgba(0, 128, 255, 0.3);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #difficultyContainer {
    padding: 0;
    gap: 0;
  }

  .difficultyRow {
    padding: 1px 0;
  }

  .counter, .instructions {
    font-size: 12px;
    margin: 1px 0;
  }

  .difficultyLabel {
    font-size: 13px;
  }

  .difficultySelection button {
    font-size: 12px;
    padding: 3px 6px;
    min-width: 50px;
  }
}

#helperToggle {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

#helperToggle label {
  margin-right: 5px;
}

#solutionBtn {
  font-size: 16px;
  margin-left: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background-color: #ffcc00;
  cursor: pointer;
  transition: background-color 0.2s;
}

#solutionBtn:hover {
  background-color: #e6b800;
}

#soundToggleBtn {
  font-size: 16px;
  margin-left: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background-color: #ffcc00;
  cursor: pointer;
  transition: background-color 0.2s;
}

#soundToggleBtn:hover {
  background-color: #e6b800;
}

/* WIN OVERLAY - Updated design */
#winOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 1000;
  animation: fadeIn 0.5s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

#winOverlay .content {
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  margin: 10px 0;
  background: rgba(0,0,0,0.9);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

#winOverlay h2 {
  font-family: 'Satisfy', cursive;
  font-size: clamp(24px, 6vw, 36px);
  margin: 0 0 12px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#winOverlay .details {
  font-size: clamp(14px, 3.5vw, 18px);
  margin: 12px 0;
  padding: 12px;
  color: #fff;
  line-height: 1.4;
  background: rgba(255, 204, 0, 0.1);
  border-radius: 12px;
  border: 2px solid rgba(255, 204, 0, 0.2);
}

#winOverlay .buttons {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#winOverlay .buttons button {
  font-size: clamp(14px, 3.5vw, 18px);
  padding: 10px 20px;
  margin: 8px;
  border: none;
  border-radius: 8px;
  background-color: #ffcc00;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: min(100%, 200px);
  white-space: normal;
}

#winOverlay .buttons button:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#shareLinkBtnFP {
  display: none; /* Hidden by default, shown on mobile via JS */
}

@media (max-width: 600px) {
  #shareLinkBtnFP {
    font-size: clamp(12px, 3vw, 14px);
    padding: 8px 16px;
    width: min(100%, 200px); /* Match other buttons */
    white-space: normal; /* Allow text to wrap */
  }
}

/* MULTIPLAYER START OVERLAY - Updated design */
#mpStartOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 1200;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

#mpStartOverlay .content {
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  margin: 10px 0;
  background: rgba(0,0,0,0.9);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

#mpStartOverlay h2 {
  font-family: 'Satisfy', cursive;
  font-size: clamp(24px, 6vw, 36px);
  margin: 0 0 12px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#mpStartOverlay p {
  font-size: clamp(14px, 3.5vw, 18px);
  margin: 12px 0;
  color: #fff;
  line-height: 1.4;
}

#mpStartOverlay h3 {
  font-family: 'Satisfy', cursive;
  font-size: clamp(20px, 5vw, 28px);
  margin: 20px 0 10px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#mpStartOverlay .rules-container {
  background: rgba(255, 204, 0, 0.1);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  border: 2px solid rgba(255, 204, 0, 0.2);
}

#mpUsername {
  font-size: clamp(14px, 3vw, 16px);
  padding: 10px;
  margin: 15px 0;
  width: min(100%, 300px);
  border: 2px solid #ffcc00;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

#startMultiplayerBtn {
  font-size: clamp(14px, 3.5vw, 18px);
  padding: 10px 20px;
  margin: 15px 0;
  border: none;
  border-radius: 8px;
  background-color: #ffcc00;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: min(100%, 200px);
  white-space: normal;
}

#startMultiplayerBtn:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* MULTIPLAYER RESULT OVERLAY - Updated design */
#mpResultOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 1100;
  animation: fadeIn 0.5s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

#mpResultOverlay .content {
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  margin: 10px 0;
  background: rgba(0,0,0,0.9);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

#mpResultOverlay h2 {
  font-family: 'Satisfy', cursive;
  font-size: clamp(24px, 6vw, 36px);
  margin: 0 0 12px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#mpResultOverlay .details {
  font-size: clamp(14px, 3.5vw, 18px);
  margin: 12px 0;
  padding: 12px;
  color: #fff;
  line-height: 1.4;
  background: rgba(255, 204, 0, 0.1);
  border-radius: 12px;
  border: 2px solid rgba(255, 204, 0, 0.2);
}

#mpResultOverlay .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

#mpResultOverlay .buttons button {
  font-size: clamp(14px, 3.5vw, 18px);
  padding: 10px 20px;
  margin: 8px;
  border: none;
  border-radius: 8px;
  background-color: #ffcc00;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: min(100%, 200px);
  white-space: normal;
}

#mpResultOverlay .buttons button:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.spin {
  display: inline-block;
  animation: spinBee 1s linear;
}

@keyframes spinBee {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-20deg); }
  100% { transform: rotate(360deg); }
}

.spin-bee {
  display: inline-block;
  animation: spinBee 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.star-rating {
  position: relative;
  display: inline-block;
  font-size: clamp(16px, 5vw, 20px);
  color: #ccc;
  line-height: 1;
  vertical-align: middle;
}

.star-rating-top {
  color: gold;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  height: 100%; /* Ensure height matches parent */
}

.star-rating-bottom {
  padding: 0;
  display: block;
  white-space: nowrap;
}

/* Multiplayer leaderboard styling */
#leaderboardContainer {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid rgba(255, 204, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(255, 204, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

#leaderboardContainer table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: clamp(12px, 2.5vw, 14px);
}

#leaderboardContainer th,
#leaderboardContainer td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

#leaderboardContainer tr.highlighted {
  background-color: rgba(255, 204, 0, 0.2);
  border-radius: 8px;
  color: #ffcc00;
}

/* Add ranking column styles to multiplayer leaderboard */
#leaderboardContainer table td:first-child {
  width: 30px;
  text-align: right;
  padding-right: 12px;
  color: #ffcc00;
  font-weight: bold;
}

/* Add title above multiplayer leaderboard */
.mp-leaderboard-title {
  font-family: 'Satisfy', cursive;
  font-size: clamp(20px, 5vw, 28px);
  margin: 20px 0 10px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #leaderboardContainer {
    max-height: 160px;
    padding: 10px;
  }
}

@media (max-height: 700px) {
  #leaderboardContainer {
    max-height: 140px;
  }
}

#finalLeaderboardContainer {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid rgba(255, 204, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(255, 204, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

#finalLeaderboardContainer table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: clamp(12px, 2.5vw, 14px);
}

#finalLeaderboardContainer th, #finalLeaderboardContainer td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

#finalLeaderboardContainer tr.highlighted {
  background-color: rgba(255, 204, 0, 0.2);
  border-radius: 8px;
  color: #ffcc00;
}

#finalLeaderboardContainer td:first-child {
  width: 30px;
  text-align: right;
  padding-right: 12px;
  color: #ffcc00;
  font-weight: bold;
}

@media (max-width: 600px) {
  #finalLeaderboardContainer {
    max-height: 160px;
    padding: 10px;
  }
}

@media (max-height: 700px) {
  #finalLeaderboardContainer {
    max-height: 140px;
  }
}

#multiplayerHashContainer {
  display: none;
}

#linkContainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
}

#mpHashDisplay {
  font-size: clamp(14px, 3vw, 16px);
  padding: 10px;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  width: min(100%, 300px);
}

#copyLinkBtn, #shareLinkBtn, #shareXBtnMP {
  font-size: clamp(12px, 3vw, 14px);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background-color: #ffcc00;
  cursor: pointer;
  transition: background-color 0.2s;
  width: min(100%, 200px); /* Match other buttons */
  white-space: normal; /* Allow text to wrap */
  margin: 0 auto; /* Center the buttons */
}

#copyLinkBtn:hover, #shareLinkBtn:hover, #shareXBtnMP:hover {
  background-color: #e6b800;
}

#shareLinkBtn {
  display: none; /* Hidden by default, shown on mobile via JS */
}

@media (max-width: 600px) {
  #linkContainer {
    flex-direction: column;
    align-items: center; /* Center items */
    justify-content: center; /* Ensure centering */
  }
  #mpHashDisplay {
    width: 100%;
    margin-bottom: 5px;
    text-align: center; /* Center the input text */
  }
  #copyLinkBtn, #shareLinkBtn, #shareXBtnMP {
    width: min(100%, 200px); /* Match other buttons */
    box-sizing: border-box;
    margin: 5px auto; /* Center the buttons */
  }
}

/* Ensure the additional-content section is centered */
#mpResultOverlay .additional-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center children */
}

.header-container {
  display: none; /* We're not using this anymore */
}

.game-logo {
  display: block;
  height: 45px; /* Even smaller base size to be safe */
  width: auto;
  margin: 0 auto;
  padding: 0;
  max-height: 45px; /* Force maximum height */
}

.difficultySelection {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.difficultySelection button {
  padding: 4px 8px;
  font-size: 13px;
  flex-shrink: 1;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .game-logo {
    height: 35px;
    max-height: 35px;
  }
  
  .difficultySelection button {
    padding: 3px 6px;
    font-size: 12px;
  }
}
#gameStatsFooter {
  margin-top: 0px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.copyright-line {
  font-size: 12px;
  color: #333;
  margin-top: 5px;
}

.copyright-line a {
  color: inherit;
  text-decoration: none;
}

/* DAILY PUZZLE START OVERLAY */
#dailyStartOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 1200;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
}

#dailyStartOverlay .content {
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  margin: 10px 0;
  background: rgba(0,0,0,0.9);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

#dailyStartOverlay h2 {
  font-family: 'Satisfy', cursive;
  font-size: clamp(24px, 6vw, 36px);
  margin: 0 0 12px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.welcome-text {
  font-size: clamp(14px, 3.5vw, 18px);
  margin: 12px 0;
  padding: 12px;
  color: #fff;
  line-height: 1.4;
}

.daily-rules {
  background: rgba(255, 204, 0, 0.1);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  border: 2px solid rgba(255, 204, 0, 0.2);
}

.daily-rules p {
  font-size: clamp(13px, 3vw, 16px);
  margin: 10px 0;
  text-align: left;
  line-height: 1.6;
  color: #fff;
}

#dailyUsername {
  font-size: clamp(14px, 3vw, 16px);
  padding: 10px;
  margin: 15px 0;
  width: min(100%, 300px);
  border: 2px solid #ffcc00;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

#startDailyBtn {
  font-size: clamp(14px, 3.5vw, 18px);
  padding: 10px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background-color: #ffcc00;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#startDailyBtn:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* DAILY PUZZLE RESULT OVERLAY */
#dailyResultOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 1100;
  animation: fadeIn 0.5s ease;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
}

#dailyResultOverlay .content {
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  margin: 10px 0;
  background: rgba(0,0,0,0.9);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

#dailyResultOverlay h2 {
  font-family: 'Satisfy', cursive;
  font-size: clamp(24px, 6vw, 36px);
  margin: 0 0 12px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  word-wrap: break-word;
}

#dailyResultOverlay .details {
  font-size: clamp(14px, 3.5vw, 18px);
  margin: 12px 0;
  padding: 12px;
  color: #fff;
  line-height: 1.4;
  background: rgba(255, 204, 0, 0.1);
  border-radius: 12px;
  padding: 15px;
  border: 2px solid rgba(255, 204, 0, 0.2);
}

#dailyLinkContainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
}

#dailyHashDisplay {
  font-size: clamp(14px, 3vw, 16px);
  padding: 10px;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  width: min(100%, 300px);
}

#dailyCopyLinkBtn, #dailyShareLinkBtn, #dailyShareXBtn {
  font-size: clamp(14px, 3vw, 16px);
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  background-color: #ffcc00;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: min(100%, 200px);
  white-space: normal;
}

#dailyCopyLinkBtn:hover, #dailyShareLinkBtn:hover, #dailyShareXBtn:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#dailyResultOverlay .buttons button {
  font-size: clamp(14px, 3.5vw, 18px);
  padding: 10px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background-color: #ffcc00;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: min(100%, 200px);
  white-space: normal;
}

#dailyResultOverlay .buttons button:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Style the leaderboard container to match */
#dailyLeaderboardContainer, #finalDailyLeaderboardContainer {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid rgba(255, 204, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(255, 204, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

#dailyLeaderboardContainer table,
#finalDailyLeaderboardContainer table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: clamp(12px, 2.5vw, 14px);
}

#dailyLeaderboardContainer th,
#dailyLeaderboardContainer td,
#finalDailyLeaderboardContainer th,
#finalDailyLeaderboardContainer td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

#dailyLeaderboardContainer tr.highlighted,
#finalDailyLeaderboardContainer tr.highlighted {
  background-color: rgba(255, 204, 0, 0.2);
  border-radius: 8px;
}

@media (max-width: 600px) {
  #dailyLinkContainer {
    flex-direction: column;
    align-items: center;
    padding: 8px;
    gap: 8px;
  }
  
  #dailyHashDisplay {
    width: 100%;
    margin-bottom: 10px;
  }
  
  #dailyCopyLinkBtn, #dailyShareLinkBtn, #dailyShareXBtn {
    width: 100%;
    margin: 5px 0;
  }
}

/* DAILY PUZZLE ALREADY PLAYED OVERLAY */
#dailyPlayedOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 1100;
  animation: fadeIn 0.5s ease;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
}

#dailyPlayedOverlay .content {
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  margin: 10px 0;
  background: rgba(0,0,0,0.9);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

#dailyPlayedOverlay h2 {
  font-family: 'Satisfy', cursive;
  font-size: clamp(24px, 6vw, 36px);
  margin: 0 0 12px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#dailyPlayedOverlay .details {
  font-size: clamp(14px, 3.5vw, 18px);
  margin: 12px 0;
  padding: 12px;
  color: #fff;
  line-height: 1.4;
  background: rgba(255, 204, 0, 0.1);
  border-radius: 12px;
  border: 2px solid rgba(255, 204, 0, 0.2);
}

#dailyPlayedLeaderboardContainer {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid rgba(255, 204, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(255, 204, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

#dailyPlayedLeaderboardContainer table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: clamp(12px, 2.5vw, 14px);
}

#dailyPlayedLeaderboardContainer th,
#dailyPlayedLeaderboardContainer td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

#dailyPlayedLeaderboardContainer tr.highlighted {
  background-color: rgba(255, 204, 0, 0.2);
  border-radius: 8px;
  color: #ffcc00;
}

#dailyPlayedOverlay .buttons button {
  font-size: clamp(14px, 3.5vw, 18px);
  padding: 10px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background-color: #ffcc00;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: min(100%, 200px);
  white-space: normal;
}

#dailyPlayedOverlay .buttons button:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
  #dailyPlayedOverlay .content {
    width: min(95%, 450px);
    padding: 15px;
  }

  #dailyPlayedOverlay h2 {
    font-size: clamp(20px, 5vw, 28px);
  }

  #dailyPlayedOverlay .details {
    font-size: clamp(13px, 3vw, 16px);
    padding: 10px;
  }

  #dailyPlayedLeaderboardContainer {
    max-height: 160px;
    padding: 10px;
  }
}

@media (max-height: 700px) {
  #dailyPlayedOverlay .content {
    padding: 12px;
  }

  #dailyPlayedLeaderboardContainer {
    max-height: 140px;
  }
}

.leaderboard-title {
  font-family: 'Satisfy', cursive;
  font-size: clamp(20px, 5vw, 28px);
  margin: 20px 0 10px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
  text-align: center;
}

#dailyLeaderboardContainer table,
#dailyPlayedLeaderboardContainer table,
#finalLeaderboardContainer table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: clamp(12px, 2.5vw, 14px);
}

/* Username and rank column styles - ensure left alignment */
#dailyLeaderboardContainer td:first-child,
#dailyPlayedLeaderboardContainer td:first-child,
#finalLeaderboardContainer td:first-child,
#leaderboardContainer td:first-child,
#mpResultOverlay .leaderboard-container td:first-child,
#dailyLeaderboardContainer td:nth-child(2),
#dailyPlayedLeaderboardContainer td:nth-child(2),
#finalLeaderboardContainer td:nth-child(2),
#leaderboardContainer td:nth-child(2),
#mpResultOverlay .leaderboard-container td:nth-child(2) {
  text-align: left;
  padding-left: 15px;
  color: #ffcc00;
  font-weight: bold;
}

/* Center alignment for other columns */
#dailyLeaderboardContainer td:nth-child(n+3),
#dailyPlayedLeaderboardContainer td:nth-child(n+3),
#finalLeaderboardContainer td:nth-child(n+3),
#leaderboardContainer td:nth-child(n+3),
#mpResultOverlay .leaderboard-container td:nth-child(n+3) {
  text-align: center;
}

/* Header styles - ensure proper alignment */
#dailyLeaderboardContainer th:first-child,
#dailyPlayedLeaderboardContainer th:first-child,
#finalLeaderboardContainer th:first-child,
#leaderboardContainer th:first-child,
#mpResultOverlay .leaderboard-container th:first-child,
#dailyLeaderboardContainer th:nth-child(2),
#dailyPlayedLeaderboardContainer th:nth-child(2),
#finalLeaderboardContainer th:nth-child(2),
#leaderboardContainer th:nth-child(2),
#mpResultOverlay .leaderboard-container th:nth-child(2) {
  text-align: left;
  padding-left: 15px;
}

#dailyLeaderboardContainer th:nth-child(n+3),
#dailyPlayedLeaderboardContainer th:nth-child(n+3),
#finalLeaderboardContainer th:nth-child(n+3),
#leaderboardContainer th:nth-child(n+3),
#mpResultOverlay .leaderboard-container th:nth-child(n+3) {
  text-align: center;
}

/* Highlighted row styles */
#dailyLeaderboardContainer tr.highlighted,
#dailyPlayedLeaderboardContainer tr.highlighted,
#finalLeaderboardContainer tr.highlighted,
#leaderboardContainer tr.highlighted,
#mpResultOverlay .leaderboard-container tr.highlighted {
  background-color: rgba(255, 204, 0, 0.2);
  border-radius: 8px;
  color: #ffcc00;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #dailyLeaderboardContainer,
  #dailyPlayedLeaderboardContainer,
  #finalLeaderboardContainer,
  #leaderboardContainer,
  #mpResultOverlay .leaderboard-container {
    max-height: 160px;
    padding: 10px;
  }
}

@media (max-height: 700px) {
  #dailyLeaderboardContainer,
  #dailyPlayedLeaderboardContainer,
  #finalLeaderboardContainer,
  #leaderboardContainer,
  #mpResultOverlay .leaderboard-container {
    max-height: 140px;
  }
}

/* Add these specific classes for leaderboard column alignment */
.rank-column {
  width: 40px;
  text-align: left !important;
  padding-left: 15px !important;
  color: #ffcc00 !important;
  font-weight: bold !important;
}

.name-column {
  text-align: left !important;
  padding-left: 15px !important;
}

.star-column, .time-column, .moves-column {
  text-align: center !important;
}

table th.star-column, table th.time-column, table th.moves-column {
  text-align: center !important;
}

/* Make star rating display centered */
.star-rating {
  display: inline-block !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
  z-index: 2000;
  padding: 0;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.close-button:hover {
  background: rgba(255, 204, 0, 0.2);
  transform: scale(1.1);
}

.close-button:active {
  transform: scale(0.95);
  background: rgba(255, 204, 0, 0.3);
}

.close-button:hover {
  background: rgba(255, 204, 0, 0.2);
  transform: scale(1.1);
}

.close-button:active {
  transform: scale(0.95);
  background: rgba(255, 204, 0, 0.3);
}

.close-button:hover {
  background: rgba(255, 204, 0, 0.2);
  transform: scale(1.1);
}

.close-button:active {
  transform: scale(0.95);
  background: rgba(255, 204, 0, 0.3);
}

@media (max-width: 600px) {
  .close-button {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    font-size: 32px;
  }
  
  h1 {
    margin: 0 0 1px 0;
    font-size: 24px;
  }
}

/* Ensure overlay content has proper positioning */
#mpStartOverlay .content,
#dailyStartOverlay .content,
#dailyPlayedOverlay .content {
  position: relative;
  padding-top: 40px !important;
}

/* Add/update these styles for leaderboard containers */
#dailyLeaderboardContainer,
#dailyPlayedLeaderboardContainer,
#finalLeaderboardContainer,
#leaderboardContainer,
#mpResultOverlay .leaderboard-container {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid rgba(255, 204, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(255, 204, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

/* Ensure tables fill their containers without horizontal scroll */
#dailyLeaderboardContainer table,
#dailyPlayedLeaderboardContainer table,
#finalLeaderboardContainer table,
#leaderboardContainer table,
#mpResultOverlay .leaderboard-container table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: clamp(12px, 2.5vw, 14px);
}

/* Set specific column widths */
.rank-column {
  width: 32px;
  min-width: 32px;
}

.name-column {
  width: 35%;
  min-width: 80px;
}

.star-column {
  width: 25%;
  min-width: 70px;
}

.time-column {
  width: 20%;
  min-width: 50px;
}

.moves-column {
  width: 20%;
  min-width: 50px;
}

/* Ensure star ratings don't overflow and align properly */
.star-column {
  padding: 8px 2px !important;
  white-space: nowrap;
  overflow: hidden;
  text-align: center !important;
}

/* Make star emojis slightly smaller and tighter */
.star-column .star-rating {
  font-size: 0.85em;
  letter-spacing: -2px;
}

/* Ensure all cells have proper padding and alignment */
#dailyLeaderboardContainer td,
#dailyPlayedLeaderboardContainer td,
#finalLeaderboardContainer td,
#leaderboardContainer td,
#mpResultOverlay .leaderboard-container td {
  padding: 8px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure headers align with their columns */
#dailyLeaderboardContainer th,
#dailyPlayedLeaderboardContainer th,
#finalLeaderboardContainer th,
#leaderboardContainer th,
#mpResultOverlay .leaderboard-container th {
  padding: 8px 2px;
  white-space: nowrap;
}

#mpStartDetails, #dailyStartDetails {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

#mpUsername, #dailyUsername {
  padding: 8px 12px;
  font-size: 14px;
  border: 2px solid rgba(255, 204, 0, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  width: min(100%, 250px);
  align-self: center;
}

#startMultiplayerBtn, #startDailyBtn {
  font-size: 16px;
  padding: 10px 24px;
  margin: 5px auto;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to bottom, #ffdb4d, #ffcc00);
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  width: min(100%, 200px);
}

#startMultiplayerBtn:hover, #startDailyBtn:hover {
  background: linear-gradient(to bottom, #ffe066, #ffd633);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  #mpStartDetails, #dailyStartDetails {
    gap: 8px;
  }

  #mpUsername, #dailyUsername {
    font-size: 13px;
    padding: 6px 10px;
  }

  #startMultiplayerBtn, #startDailyBtn {
    font-size: 14px;
    padding: 8px 20px;
  }
}

@keyframes pulse {
  0%, 100% { 
    filter: drop-shadow(0 0 2px rgba(255, 204, 0, 0.2));
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.8));
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.helper.wiggle {  /* keeping class name for consistency with JS */
  animation: pulse 1.5s ease-in-out infinite;
  animation-play-state: running;
  animation-delay: 1.5s;  /* Start after bee spin completes */
  transform-origin: center;
  z-index: 1;
  transform: translate(-50%, -50%);  /* Maintain position while waiting */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.win-bee {
  width: 150px;
  height: auto;
  margin: 10px auto;
  animation: winBounce 0.8s cubic-bezier(0.36, 0, 0.66, 1) forwards;
  backface-visibility: hidden;  /* Reduce flickering */
  transform-style: preserve-3d;  /* Better performance */
  will-change: transform;  /* Optimize animation performance */
}

@keyframes winBounce {
  0% { 
    transform: scale(0.3) translateZ(0); 
    opacity: 0; 
  }
  60% { 
    transform: scale(1.1) translateZ(0); 
  }
  80% { 
    transform: scale(0.95) translateZ(0); 
  }
  100% { 
    transform: scale(1) translateZ(0); 
    opacity: 1; 
  }
}

@keyframes pulseHive {
  0%, 100% { 
    filter: drop-shadow(0 0 2px rgba(255, 204, 0, 0.2));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.8));
    transform: scale(1.2);
  }
}

.pulse-hive {
  display: inline-block;
  animation: pulseHive 1.5s ease-in-out infinite;
  transform-origin: center;
  pointer-events: none;  /* Allow clicks to pass through to the cell */
  position: relative;
  z-index: 1;
}

@keyframes pulseBlack {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.pulse-black {
  animation: pulseBlack 2s infinite;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .leaderboard-title {
    font-size: clamp(18px, 4vw, 24px);
    margin: 15px 0 8px 0;
  }
}

#winTitle {
  font-family: 'Satisfy', cursive;
  font-size: clamp(24px, 6vw, 36px);
  margin: 0 0 12px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #winTitle {
    font-size: clamp(20px, 5vw, 28px);
    margin: 0 0 8px 0;
  }
}

#leaderboardOverlay h2 {
  color: #7b68ee;
  margin-bottom: 20px;
  white-space: nowrap;
  text-align: center;
}

.mp-leaderboard-title {
  font-family: 'Satisfy', cursive;
  font-size: clamp(20px, 5vw, 28px);
  margin: 20px 0 10px 0;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
  text-align: center;
}

/* Animated star rating for win screens */
.animated-stars {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

.animated-stars .star-rating {
  opacity: 1;
  position: relative;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.animated-stars .star-rating-bottom {
  position: relative;
  z-index: 0;
}

.animated-stars .star-rating-top {
  animation: starFlyIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards, starGlow 2s ease-in-out infinite;
  animation-delay: 0s, 1s;
  transform-origin: left center;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1; /* Above the grey stars */
  filter: drop-shadow(0 0 0px rgba(255, 204, 0, 0));
  will-change: transform, opacity, filter;
  /* Add hardware acceleration to prevent triggering layout events */
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

@keyframes starGlow {
  0%, 100% {
    filter: drop-shadow(0 0 1px rgba(255, 204, 0, 0.5));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.8));
    transform: scale(1);
  }
}

@keyframes starFlyIn {
  0% {
    transform: translateX(-100px) scale(0.5);
    opacity: 0;
  }
  70% {
    transform: translateX(5px) scale(1.1);
    opacity: 1;
  }
  85% {
    transform: translateX(-2px) scale(1);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Individual star animation effect - creates illusion of sequence */
.animated-stars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #ffcc00 50%, transparent 100%);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
  animation: starSweep 0.6s linear forwards;
  animation-delay: 0.3s;
}

@keyframes starSweep {
  0% {
    transform: translateX(-100%);
    opacity: 0.6;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Highlighted score styling */
.highlight-score {
  display: inline-block;
  font-weight: bold;
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px 0;
  animation: scorePopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.9s; /* Start after stars finish animating */
  opacity: 0;
  transform: scale(0.8);
}

@keyframes scorePopIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reset any potentially conflicting styles */
#winOverlay .details .animated-stars,
#mpResultOverlay .details .animated-stars,
#dailyResultOverlay .details .animated-stars {
  display: inline-block;
  position: relative;
  line-height: 1;
}

/* Bee Findr button */
#beeFindrBtn {
  font-size: clamp(12px, 2.5vw, 14px);
  margin-left: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background-color: #ffcc00;
  cursor: pointer;
  transition: background-color 0.2s;
}

#beeFindrBtn:hover {
  background-color: #e6b800;
}