body {
  font-family: 'Comic Sans MS', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background: linear-gradient(to bottom, #fff0f5, #ffe4ec);
  overflow-x: hidden;
}

.snack-time-container {
  max-width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.host-screen-glow {
  background: linear-gradient(to bottom right, #fff5fc, #ffeef5);
  padding: 30px 25px;
  border-radius: 25px;
  border: 3px solid #ff8acb;
  box-shadow: 0 0 20px #ffbde080;
  animation: glowing-border 4s linear infinite;
  max-width: 650px;
  width: 100%;
}

@keyframes glowing-border {
  0% { box-shadow: 0 0 10px 3px #ffc1e3; }
  50% { box-shadow: 0 0 30px 10px #ff8acb; }
  100% { box-shadow: 0 0 10px 3px #ffc1e3; }
}

.host-screen-glow h1 {
  font-size: 2em !important;
  color: #ff69b4 !important;
  margin-bottom: 15px;
  text-align: center;
}

.host-intro {
  font-size: 1.05em;
  line-height: 1.7;
  color: #444 !important;
  margin-bottom: 30px !important;
  padding: 0 5px;
}

.highlight {
  font-weight: bold;
  color: #ff1493;
}

.host-step-title {
  font-size: 1.2em;
  margin: 20px 0 10px;
  color: #ff1493;
}

/* Buttons (Gender + Copy/Open) */
#host-screen button {
  display: inline-block;
  margin: 10px;
  padding: 14px 28px;
  border-radius: 30px;
  background: linear-gradient(to right, #ffa07a, #ffb6c1);
  color: white;
  font-size: 1em;
  font-weight: bold;
  border: 2px solid transparent;
  transition: all 0.3s ease-in-out;
}
#host-screen button:hover {
  transform: scale(1.06);
  background: linear-gradient(to right, #ffb6c1, #ffa07a);
}
#host-screen button.selected {
  border: 3px solid #fff;
  box-shadow: 0 0 10px #ff8acb;
}

/* Generated Link */
#generated-link {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  margin-top: 10px;
  background: #fff7fb;
  box-shadow: inset 0 0 4px #ffc1e3;
}

/* Output Buttons Container */
#link-output {
  margin-top: 20px;
}
#link-output .link-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}
#link-output .link-actions button {
  padding: 10px 20px;
  border-radius: 25px;
  background-color: #ff8acb;
  border: none;
  color: #fff;
  font-weight: bold;
  transition: background 0.3s ease;
}
#link-output .link-actions button:hover {
  background-color: #ff6fae;
}

/* GAME AREA */
#game-container {
  position: relative;
  border: 3px solid #ffa4d1;
  border-radius: 20px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 0 15px #ffbde080;
  max-width: 650px;
  width: 100%;
  background: #fff0f7;
  animation: game-border-glow 3s ease-in-out infinite alternate;
}
@keyframes game-border-glow {
  from { box-shadow: 0 0 10px #ffc1e3; }
  to { box-shadow: 0 0 25px #ff8acb; }
}

#game-container h2 {
  font-size: 1.6em !important;
  color: #ff66a1;
  margin-bottom: 35px;
  text-shadow: 1px 1px 2px #fff;
  text-align: center;
}

#progress-container {
  margin-bottom: 20px;
}
#progress-bar {
  width: 100%;
  background: #ffe3f0;
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
#progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #ff8acb, #ffa07a);
  transition: width 0.5s ease;
}
#progress-text {
  font-weight: bold;
  font-size: 1em;
  color: #d94a8a;
  text-align: center;
  margin-bottom: 50px;
}

#hint-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 10px 25px;
  background: #ffc1e3;
  color: #333;
  border: 2px solid #ff8acb;
  border-radius: 20px;
  font-weight: bold !important;
  box-shadow: 0 0 10px #ffc1e3;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

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

#baby-area {
  display: flex;
  align-items: center;
  margin-top: 30px;
  height: 100px;
  position: relative;
  justify-content: center; /* Change from flex-start */
  padding-left: 0; /* Remove side padding */
}

#spoon {
  font-size: 30px;
  position: relative;
  transition: transform 1s ease;
  display: none;
}

.spoon-fly {
  animation: spoon-move 1.2s ease forwards;
}

@keyframes spoon-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(65px); }
}

#baby {
  font-size: 60px;
  transition: transform 0.5s ease;
  display: none;
}

.baby-happy {
  transform: scale(1.2) rotate(10deg);
}

#riddle-box {
  font-size: 1.4em;
  font-weight: bold;
  color: #d94a8a;
  background: #fff7fb;
  padding: 15px 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  animation: fadeInRiddle 0.6s ease;
  box-shadow: 0 0 10px #ffc8e5;
}

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

.answer-box {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px auto;
  max-width: 90%;
}

.answer-letter {
  width: 35px;
  height: 45px;
  font-size: 1.3em;
  border: 2px solid #ffbde0;
  border-radius: 6px;
  text-align: center;
  background: #fff0f8;
  color: #d94a8a;
  box-shadow: 0 2px 4px #ffd3ea;
  outline: none;
  text-transform: uppercase;
}

.answer-letter:focus {
  border-color: #ff69b4;
  background: #fff8fb;
}

.word-gap {
  width: 20px;
  height: 1px;
  margin: 0 8px;
  display: inline-block;
}

.word-block {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: nowrap;
  justify-content: center;
}

.pre-filled {
  background-color: #f0f0f0;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

#final-reveal-text {
  font-size: 2.8em !important;
  margin-top: 30px !important;
  margin-bottom: 50px;
  color: #ff3399 !important;
  font-weight: bold !important;
  text-align: center !important;
  animation: pop 1s ease, glow 1.5s infinite alternate !important;
  text-shadow: 2px 2px 4px #fff !important;
}

@keyframes glow {
  0% { text-shadow: 0 0 10px #ff80bf; }
  100% { text-shadow: 0 0 20px #ff1493; }
}
@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#share-buttons {
  margin-top: 20px;
}

#share-buttons a {
  padding: 12px 20px;
  border-radius: 30px;
  background: linear-gradient(to right, #ff69b4, #ffb6c1);
  color: white;
  text-decoration: none;
  margin: 10px;
  display: inline-block;
  font-weight: bold;
  box-shadow: 0 4px 8px #ffcce6;
  transition: transform 0.2s ease, background 0.3s ease;
}
#share-buttons a:hover {
  background: linear-gradient(to right, #ffb6c1, #ff69b4);
  transform: scale(1.05);
}

#play-again-btn {
  margin-top: 25px;
  padding: 14px 30px;
  background: #ff8acb;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 35px;
  box-shadow: 0 5px 15px #ffc1e3;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

#play-again-btn:hover {
  background: #ff6fae;
  transform: scale(1.05);
}

#share-buttons a:active,
#play-again-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px #ffaacb inset;
}

.download-btn {
  margin-top: 15px;
  padding: 12px 28px;
  background: #ffd700;
  color: #444;
  font-weight: bold;
  border: 2px solid #ffc107;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px #ffe066;
  transition: background 0.3s ease;
}
.download-btn:hover {
  background: #ffec8b;
}

#final-screen {
  padding: 40px 20px;
  border-radius: 25px;
  background: radial-gradient(circle, #fff0f8, #ffe4ec);
  box-shadow: 0 0 25px 10px #ffbde0;
  animation: finalGlow 3s ease-in-out infinite alternate;
  text-align: center;
  max-width: 700px;
  margin: 40px auto;
  position: relative;
}

@keyframes finalGlow {
  0% { box-shadow: 0 0 20px #ffcce6; }
  100% { box-shadow: 0 0 40px #ff99cc; }
}

#virtual-booth-frame {
  border: 12px dashed #ff8acb;
  padding: 40px;
  background: rgba(255, 240, 250, 0.7);
  border-radius: 30px;
  position: relative;
  animation: pulseFrame 2s infinite;
}
@keyframes pulseFrame {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}
.frame-text {
  font-size: 1.4em;
  color: #ff3399;
  font-weight: bold;
  margin-bottom: 10px;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 21%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.name-input-box {
  text-align: center;
  padding: 30px;
  background: #fff0f5;
  border: 3px solid #ff99cc;
  border-radius: 15px;
  font-family: 'Comic Sans MS';
}

.name-input-box input {
  padding: 10px;
  font-size: 1.2em;
  width: 80%;
  margin: 15px 0;
}

.name-input-box button {
  padding: 12px 30px;
  font-size: 1.2em;
  background: linear-gradient(to right, #ff66b3, #ff99cc);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  box-shadow: 0 4px 8px rgba(255, 105, 180, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.name-input-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255, 105, 180, 0.5);
}

.name-input-box button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(255, 105, 180, 0.3);
}

@media (max-width: 600px) {
  #host-screen button {
    display: block;
    margin: 10px auto;
    width: 80%;
    max-width: 250px;
	text-align: center;
  }
  .answer-box {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 10px;
  }
  .word-block { flex-wrap: wrap; justify-content: center; width: 100%; }
  .answer-letter { flex-shrink: 0; }
}