/* Host Screen */
#host-screen {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f9ff, #ffffff);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 40px auto;
  animation: fadeIn 0.8s ease;
}

/* TITLE */
.host-title {
  font-size: 2em;
  font-weight: bold;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  margin-bottom: 10px;
}

/* INSTRUCTIONS */
.host-instructions {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 25px;
}

/* RADIO GROUP */
.radio-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.radio-group label {
  padding: 12px 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  background-color: #f7f7f7;
}

/* Touch + hover */
.radio-group label:hover,
.radio-group label:active {
  transform: scale(1.05);
  background-color: #eee;
}

/* Reset border and background when checked — then colorize individually */
.radio-group input[type="radio"] {
  display: none;
}

.radio-group input[type="radio"]:checked + label {
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Specific color for each gender */
.radio-group label.selected-boy {
  background-color: #d0e9ff;
  border-color: #3399ff;
  color: #0074cc;
}

.radio-group label.selected-girl {
  background-color: #ffe0f0;
  border-color: #ff66b2;
  color: #cc007a;
}

.radio-group label.selected-twins {
  background-color: #fff9cc;
  border-color: #ffd700;
  color: #aa8800;
}

/* LINK DISPLAY */
#link-display {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.5s ease;
  display: inline-block;
}

#link-display.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* LINK FIELD */
#share-link {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: 2px solid #ccc;
  border-radius: 10px;
  margin-bottom: 15px;
  color: #333;
  background: #fff;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Buttons */
#copy-btn,
#open-btn {
  padding: 12px 20px;
  margin: 5px;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

#copy-btn {
  background: linear-gradient(to right, #6a11cb, #2575fc);
}

#copy-btn:hover {
  background: linear-gradient(to right, #2575fc, #6a11cb);
  transform: scale(1.05);
}

#copy-btn.copied {
  background: #4caf50 !important;
  animation: pulse 0.4s ease;
}

#open-btn {
  background: linear-gradient(to right, #ff9800, #f44336);
}

#open-btn:hover {
  background: linear-gradient(to right, #f44336, #ff9800);
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

#spot-diff-container {
    text-align: center;
    padding: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #fff9f9;
}

.game-title {
    font-size: 2rem;
    color: #ff69b4;
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s;
}

.instructions {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

.how-to-play {
    background: #fff8f4;
    border: 2px dashed #ff8ab0;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 90%;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    box-shadow: 0 2px 10px rgba(255, 192, 203, 0.3);
    animation: fadeIn 1s ease-out;
}

.how-to-play h3 {
    margin-top: 0;
    color: #ff4f93;
    font-size: 1.4em;
    text-align: center;
}

.how-to-play p {
    font-size: 1rem;
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar */
#progress-bar-container {
  width: 100%;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

#progress-bar {
  height: 24px;
  background: linear-gradient(to right, #ff69b4, #ffb6c1);
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transition: width 0.5s ease;
  white-space: nowrap;
  overflow: hidden;
}

/* Hint Button */
#hint-btn {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 105, 180, 0.4);
    transition: background 0.3s ease;
}

#hint-btn:hover {
    background: #ff1493;
}

/* Yoohoo Message */
#round-message {
	text-align: center;
	font-size: 1.6rem;
	font-weight: bold;
	color: #ff69b4;
	margin-top: 20px;
	transition: all 0.3s ease-in-out;
}

.image-wrapper.disabled {
	pointer-events: none;
	opacity: 0.4;
}

.share-message {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
    color: #444;
    font-style: italic;
}

#spot-diff-game {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
	align-items: center;
    gap: 1rem;
	margin: 0 auto;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.game-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;   /* Make canvas match image width */
    height: 100% !important;  /* Make canvas match image height */
    cursor: crosshair;
}

#spot-diff-scoreboard {
    margin: 1rem 0;
    font-size: 1.2rem;
    color: #333;
}

#spot-diff-end {
    margin-top: 2rem;
    animation: fadeInUp 1s;
}

#spot-diff-end.hidden {
    display: none;
}

.hidden {
	display: none !important;
}

/* You Completed The Entire Game In */
#spot-diff-end p.final-time {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

#spot-diff-end h3 {
    font-size: 2.2rem !important;
    font-weight: 800;
    color: #ff69b4;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    animation: pop-in 0.6s ease !important;
}

@keyframes pop-in {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#sparkle-canvas {
    width: 100%;
    height: 150px;
    margin: 20px 0;
    pointer-events: none;
	position: absolute;
}

/* Dimmed & paused state */
.dimmed {
    opacity: 0.3;
    pointer-events: none;
}
.paused {
    pointer-events: none;
}

/* End screen shimmer */
#reveal-gender {
    font-size: 4.5rem;
    font-weight: bold;
    color: #ff1493;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { opacity: 1; text-shadow: 0 0 5px #fff; }
    50% { opacity: 0.6; text-shadow: 0 0 15px #ff69b4; }
    100% { opacity: 1; text-shadow: 0 0 5px #fff; }
}

#reveal-gender.reveal-text {
    font-size: 4.5rem !important;
    font-weight: bold;
    color: #ff69b4;
    text-align: center;
    margin: 20px 0;
}

/* End Screen Thumnail Style */
.end-image-stats {
    display: inline-block;
    text-align: center;
    border: 2px solid #ffd5e5;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    width: 150px;
    background: #fff8fc;
    vertical-align: top;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.1);
}

.end-image-stats img.end-thumb {
    width: 100%;
    height: auto;
    border: 2px solid #ffb6c1;
    border-radius: 8px;
    margin-bottom: 8px;
}

.end-image-stats span {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
    margin-top: 5px;
}

#end-thumbnails-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Share buttons */
#social-share-buttons {
    margin-top: 15px;
	margin-bottom: 30px;
	font-size: 17px;
}

#social-share-buttons a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    padding: 10px 16px;
    background: #ffe4ec;
    color: #000;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}
#social-share-buttons a:hover {
    background: #ffb6c1;
}
@media (min-width: 768px) {
  .end-image-stats:nth-child(4) {
    margin-left: auto;
	}
}

@media (max-width: 768px) {
    #spot-diff-game {
        flex-direction: column;
        align-items: center;
    }
	#reveal-gender {
		font-size: 2rem !important;
	}
}

@media (max-width: 600px) {
  .radio-group {
    flex-direction: column;
    align-items: center;
  }
	.radio-group label {
    width: 60%;
  }

  #share-link {
    width: 95%;
  }
	#end-thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: #ffb6c1;
    border-radius: 3px;
  }
}

@media (max-width: 480px) {
  #social-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
	#social-share-buttons a {
    width: 50%;
  }
}
/* Bonus Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
