.host-container {
  max-width: 550px;
  margin: auto;
  padding: 30px;
  text-align: center;
  font-family: 'Comic Sans MS', cursive;
  background: linear-gradient(135deg, #fff0f5, #e0ffff);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
  animation: fadeIn 1.2s ease-in;
}

.info-list {
  text-align: left;
  padding-left: 0;
  list-style: none;
  margin-top: 15px;
  margin-bottom: 30px;
}
.info-list li {
  margin: 10px 0;
  font-size: 16px;
}

.gender-select {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}
.gender-option {
  cursor: pointer;
  padding: 15px 25px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 16px;
  user-select: none;
}
.gender-option:hover {
  background: #ffeef8;
  border-color: #ff69b4;
}
.gender-option input[type="radio"] {
  display: none;
}
.gender-option input[type="radio"]:checked + span,
.gender-option input[type="radio"]:checked ~ span {
  color: white;
  background: #ff69b4;
  padding: 10px 18px;
  border-radius: 5px;
}

.link-output {
  margin-top: 20px;
  animation: fadeIn 0.8s ease-in;
}
.link-output input {
  width: 90%;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  border: 2px dashed #ff69b4;
  background: #fff8fc;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}
.link-output input:hover {
  background: #fff0f8;
  transform: scale(1.02);
}

.link-buttons button {
  margin: 5px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  background: #ff69b4;
  color: white;
  transition: all 0.3s ease;
}
.link-buttons button:hover {
  background: #ff3c9e;
  transform: scale(1.05);
}
.link-buttons button:active {
  transform: scale(0.96);
}

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

#matching-game-container {
  max-width: 600px;
  margin: auto;
  text-align: center;
  font-family: 'Comic Sans MS', cursive;
  padding: 1.5em;
  background: linear-gradient(135deg, #fff0f5, #ffe0ed);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 102, 178, 0.2);
}

.hidden {
  display: none !important;
}
.disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

#start-screen input {
  padding: 12px;
  font-size: 1.2em;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 2px solid #ff66b2;
  width: 80%;
  height: 45px;
}

.primary-btn, .secondary-btn, #answer-options button {
  background: linear-gradient(to right, #ff66b2, #ff99cc);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1em;
  margin: 12px 8px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
  box-shadow: 0 4px 6px rgba(255, 102, 178, 0.3);
}

.secondary-btn {
  background: linear-gradient(to right, #8884ff, #bca0ff);
}

.primary-btn:hover, .secondary-btn:hover, #answer-options button:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

#question-box {
  font-size: 1.4em;
  margin: 20px auto;
  animation: fadeIn 0.5s ease;
  font-weight: bold;
  color: #cc0066;
}

#riddle-number {
  font-size: 1.2em;
  font-weight: bold;
  color: #d93a8a;
  margin-top: 10px;
  margin-bottom: 5px;
  text-align: center;
}
#scoreboard {
  text-align: center;
  margin-bottom: 10px;
}
#scoreboard span {
  display: inline-block;
  margin: 0 12px;
  font-weight: bold;
  color: #cc0066;
  font-size: 1em;
}

#progress-bar {
  height: 12px;
  width: 100%;
  background: #ffe6f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #ff3399, #ff99cc);
  transition: width 0.4s ease-in-out;
}

#final-screen {
  margin-top: 30px;
  background: linear-gradient(to right, #ffe6f0, #fff0f5);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
}

#final-screen h2 {
  margin-bottom: 20px;
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #ff66b2;
  animation: typing 3s steps(40, end), blink-caret 0.5s step-end infinite;
  font-size: 2em !important;
  font-weight: bold !important;
  color: #d93a8a !important;
}

#feedback-text {
  margin-top: 15px;
  font-size: 1.2em;
  font-weight: bold;
  height: 30px;
  animation: fadeIn 0.3s ease;
}

.correct-text {
  color: #28a745;
  animation: pop 0.3s ease;
}
.wrong-text {
  color: #dc3545;
  animation: shake 0.3s ease;
}

/* Reveal Text Highlight */
#reveal-text {
  font-size: 2.5em !important;
  color: #fff !important;
  background: #ff66b2;
  padding: 20px;
  border: 6px dotted #ffccdd;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
  text-align: center;
  animation: pop 0.6s ease;
  max-width: 90%;
  margin: auto;
}

/* Toast Notification */
#toast {
  visibility: hidden;
  min-width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px 20px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 60px;
  font-size: 1em;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
}
#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 90px;
}

/* Share Button Styling */
#share-buttons a {
  display: inline-block;
  margin: 10px;
  padding: 10px 18px;
  background-color: #ff66b2;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255, 102, 178, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
}
#share-buttons a:hover {
  background-color: #e653a3;
  transform: scale(1.08);
}
#share-buttons::before {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #b30059;
}
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

#performance-summary {
  background: #fff0f8;
  padding: 20px;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.2);
  font-size: 1.1em;
  color: #cc0066;
  text-align: left;
  line-height: 1.6em;
}
#performance-summary p {
  margin: 10px 0;
}
#performance-summary strong {
  color: #b30059;
}

/* Keyframes */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #ff66b2; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* Responsive Mobile */
@media (max-width: 600px) {
  body, .host-container, #matching-game-container { font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', Arial, sans-serif !important; }
  #matching-game-container { padding: 1em; width: 95%; }
  #question-box { font-size: 1.5em !important; font-weight: bold;}
  .primary-btn, .secondary-btn, #answer-options button { width: 90%; margin: 10px auto; font-size: 1.2em; padding: 14px; }
  #start-screen input { padding: 12px; font-size: 1.2em; width: 95%; }
  #hint-btn { font-size: 1.1em !important; padding: 12px 18px; }
  #feedback-text { font-size: 1.2em; }
  #scoreboard span { font-size: 1em; }
  #reveal-text { font-size: 2em !important; padding: 16px !important; }
  .gender-select { flex-direction: column !important; align-items: center; }
  .gender-option { width: 60%; font-size: 1.1em; }
  #riddle-number { font-size: 1.4em; }
}

@media (max-width: 480px) {
  #reveal-text { font-size: 1.8em !important; padding: 15px !important; }
  #share-buttons a { display: block; margin: 10px auto; width: 80%; }
  #scoreboard span { display: block; margin-bottom: 5px; }
}