/* Container Styling */
.host-gender-container {
  max-width: 750px;
  margin: 40px auto;
  padding: 30px;
  border: 4px #ff6ec7;
  border-radius: 20px;
  text-align: center;
  animation: glow-border 3s infinite ease-in-out;
  background: linear-gradient(to bottom right, #fff0f8, #ffe0f0);
  font-family: 'Comic Sans MS', cursive;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
  position: relative;
  overflow: hidden;
}

/* Animated border pulse */
@keyframes glow-border {
  0% { box-shadow: 0 0 8px #ff6ec7; border-color: #ff6ec7; }
  50% { box-shadow: 0 0 20px #ff1493; border-color: #ff1493; }
  100% { box-shadow: 0 0 8px #ff6ec7; border-color: #ff6ec7; }
}

/* Gender Form Labels */
#gender-form label {
  display: inline-block;
  margin: 15px;
  font-size: 1.3em;
  cursor: pointer;
  padding: 12px 20px;
  border: 2px solid #ccc;
  border-radius: 25px;
  background-color: #fff;
  transition: all 0.4s ease;
  user-select: none;
  position: relative;
}

/* Hide native radio */
#gender-form input[type="radio"] {
  display: none;
}

/* Label hover and focus styles */
#gender-form label:hover {
  border-color: #ff69b4;
  background-color: #ffe6f0;
  transform: scale(1.05);
}

/* Selected radio effect */
#gender-form input[type="radio"]:checked + label {
  background-color: #ff66b2;
  color: white;
  border-color: #ff1493;
  box-shadow: 0 0 10px #ff66b2;
  transform: scale(1.1);
}

/* Reveal Button */
.reveal-btn {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #ff66b2, #ff1493);
  color: white;
  padding: 12px 28px;
  margin-top: 25px;
  border: none;
  border-radius: 50px;
  font-size: 1.2em;
  width: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.reveal-btn:hover {
  background: linear-gradient(135deg, #ff1493, #ff66b2);
  transform: scale(1.05);
}

button {
  position: relative;
  overflow: hidden;
}
button .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s linear;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Generated Link Container */
#generated-link-container {
  margin-top: 30px;
  animation: fadeIn 1s ease-in;
}

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

#generated-link {
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #fff0f8;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

/* Button group below the link */
.link-actions {
  margin-top: 15px;
}

.link-actions button {
  margin: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(to right, #87cefa, #00bfff);
  color: white;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(135, 206, 250, 0.4);
}

.link-actions button:hover {
  background: linear-gradient(to right, #00bfff, #87cefa);
  transform: scale(1.05);
}

/* Copy status */
.copy-status {
  color: #28a745;
  font-style: italic;
  margin-top: 8px;
  font-size: 0.95em;
}

#bgt-game-wrapper {
  font-family: 'Comic Sans MS', cursive;
  padding: 20px;
  text-align: center;
}

#bgt-mode-screen {
  text-align: center;
  padding: 40px;
  max-width: 500px;
  margin: 40px auto;
  border: 4px;
  border-image: linear-gradient(135deg, #ff66cc, #ff99cc, #ff66cc) 1;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
  animation: glowBorder 2s infinite ease-in-out;
  background: #fffafd;
}

#bgt-name-screen {
  text-align: center;
  padding: 40px;
  max-width: 500px;
  margin: 40px auto;
  border: 4px;
  border-image: linear-gradient(135deg, #66ccff, #ff99cc) 1;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(102, 204, 255, 0.4);
  background: linear-gradient(135deg, #ffe0f7, #e0f7ff);
  animation: glowBorderBlue 2s infinite ease-in-out;
}

#bgt-player-name {
  padding: 15px;
  font-size: 1.2em;
  width: 80%;
  max-width: 300px;
  border: 2px solid #ddd;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 0 10px rgba(102, 204, 255, 0.15);
}

@keyframes glowBorderBlue {
  0%, 100% { box-shadow: 0 0 10px rgba(102, 204, 255, 0.2); }
  50% { box-shadow: 0 0 25px rgba(102, 204, 255, 0.5); }
}

.hidden {
  display: none !important;
}

.bgt-btn {
  background: linear-gradient(135deg, #ff66cc, #ff99cc);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 1.3em;
  margin: 15px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bgt-btn:hover {
  transform: scale(1.05);
}

.bgt-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#bgt-room-screen {
  background: #fff8f0;
  border: 3px dashed #f7b2d9;
  padding: 20px;
  margin: 20px auto;
  max-width: 400px;
  text-align: center;
  border-radius: 12px;
  animation: fadeIn 0.5s ease-in-out;
}

#bgt-room-screen input {
  padding: 20px;
  width: 80%;
  margin: 10px auto;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  display: block;
}

#bgt-room-screen button {
  padding: 10px 20px;
  margin: 5px;
  background: #ffc0cb;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

#bgt-room-screen ul { list-style:none; padding:0; margin:10px 0; }
#bgt-room-screen li { margin-bottom:4px; }
#bgt-proceed-host-btn { margin-top: 10px; }

#bgt-room-screen button:hover {
  background-color: #f88aa6;
  color: white;
}

#bgt-room-msg {
  margin-top: 10px;
  font-weight: bold;
}

/* Shared UI Blocks */
#bgt-waiting-screen,
#bgt-host-lobby,
#bgt-host-watch-screen {
  background: #fff5f9;
  border: 2px solid #ffadd6;
  border-radius: 12px;
  padding: 25px;
  max-width: 500px;
  margin: 30px auto;
  box-shadow: 0 4px 15px rgba(255, 180, 220, 0.3);
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

#bgt-waiting-screen h2,
#bgt-host-lobby h2,
#bgt-host-watch-screen h3 {
  color: #d70080;
  font-family: 'Comic Sans MS', cursive;
  margin-bottom: 15px;
}

#bgt-player-list,
#bgt-lobby-player-list {
  margin: 10px auto;
  padding: 10px 15px;
  background: #fff0f5;
  border: 1px dashed #ff8fc4;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
}

#bgt-player-list ul,
#bgt-lobby-player-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#bgt-player-list li,
#bgt-lobby-player-list li {
  padding: 6px 10px;
  background: #ffe4ec;
  border-radius: 5px;
  margin-bottom: 6px;
  font-weight: bold;
}

#bgt-waiting-room-id,
#bgt-live-host-timer {
  font-weight: bold;
  font-size: 1.2em;
  color: #a6006c;
}

#bgt-host-start-btn {
  margin-top: 15px;
  background-color: #ff70b3;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  color: white;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

#bgt-host-start-btn:hover {
  background-color: #ff4799;
}

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

#bgt-timer {
  font-size: 1.8em;
  font-weight: bold;
  color: #ff3399;
  margin-bottom: 15px;
  animation: pulse 1s infinite;
}

.bgt-disabled {
  background-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#bgt-game-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 700px;
  margin: 0 auto;
}

.bgt-letter-box {
  width: 48%;
  box-sizing: border-box;
  background: #fff3f8;
  border: 2px dashed #ff99cc;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  animation: fadeIn 0.5s ease-in;
  font-size: 1.2em;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}
.bgt-letter-box strong {
  font-size: 1.3em;
}
.bgt-letter-box input {
  width: 100% !important;
  padding: 12px !important;
  font-size: 1.1em !important;
  border-radius: 6px !important;
  border: 1px solid #ccc !important;
  margin-top: 10px;
}

.bgt-letter-box.correct {
  background-color: #d4edda;
  border-color: #28a745;
  animation: tada 1s ease;
}

.bgt-letter-box.wrong {
  background-color: #f8d7da;
  border-color: #dc3545;
  animation: shake 0.8s ease;
}

#bgt-submit-btn,
#bgt-proceed-btn,
#bgt-proceed-btn-2,
#bgt-restart-btn {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1.2em;
  background: linear-gradient(135deg, #66ccff, #3399ff);
  box-shadow: 0 5px 15px rgba(51, 153, 255, 0.4);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#bgt-submit-btn:hover,
#bgt-proceed-btn:hover,
#bgt-proceed-btn-2:hover,
#bgt-restart-btn:hover {
  background: #0099cc;
  transform: scale(1.05);
}

#bgt-end-screen,
#bgt-review-screen {
  padding: 30px;
  animation: zoomIn 0.6s ease-in-out;
}

#bgt-gender-reveal-text {
  font-size: 2.5em !important;
  color: #ff3399;
  animation: shimmer 3s infinite;
  margin-bottom: 20px;
}
#bgt-summary p {
  font-size: 1.3em;
  margin: 12px 0;
  color: #444;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(255, 105, 180, 0.15);
  font-weight: 500;
  transition: transform 0.3s ease;
}
#bgt-summary p:first-child {
  font-weight: bold;
  color: #ff66cc;
  font-size: 1.4em;
  margin-bottom: 15px;
  margin-top: 50px;
}

#bgt-summary p:hover {
  transform: scale(1.02);
}

#bgt-leaderboard-screen {
  background: #fff9f5;
  padding: 20px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 450px;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

#bgt-leaderboard-screen h3 {
  font-size: 1.8em;
  color: #e97e7e;
  margin-bottom: 20px;
}

#bgt-leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#bgt-leaderboard-list li {
  display: flex;
  justify-content: space-between;
  background: #fff;
  margin: 8px 0;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(233, 126, 126, 0.2);
  font-size: 1.1em;
  animation: slideUp 0.4s ease;
}

#bgt-leaderboard-list li span.rank {
  width: 25px;
  font-weight: bold;
  color: #333;
}

#bgt-leaderboard-list li span.name {
  flex: 1;
  text-align: left;
  font-weight: 600;
}

#bgt-leaderboard-list li span.score,
#bgt-leaderboard-list li span.time {
  font-size: 0.95em;
  color: #777;
  min-width: 60px;
  text-align: right;
}

#bgt-middle-screen {
  padding: 40px;
  background: #fff8fc;
  text-align: center;
  border-radius: 15px;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.15);
  animation: zoomIn 0.6s ease-in-out;
}

#bgt-middle-screen h3 {
  font-size: 2em;
  color: #ff66cc;
  margin-bottom: 20px;
}

#bgt-countdown {
  font-size: 9em;
  font-weight: bold;
  color: #ff3399;
  animation: pulse 1s infinite;
}

.glitter-text {
  font-weight: bold;
  font-size: 2.3em;
  background: linear-gradient(90deg, #ff66cc, #ffccff, #ff66cc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s infinite linear;
}

.spread-love-text {
  font-size: 1.4em;
  font-style: italic;
  color: #ff66cc;
  margin: 50px 0;
  animation: pulseBounce 7s ease-in-out infinite;
}

#bgt-social-share {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

#bgt-social-share a {
  margin: 0 10px;
  text-decoration: none;
  color: white;
  padding: 10px 20px;
  background: #ff66b2;
  border-radius: 8px;
  display: inline-block;
  transition: background 0.3s;
}

#bgt-social-share a:hover {
  background: #ff3399;
}

.hurry-up-flash {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffcc00;
  color: #000;
  padding: 15px 30px;
  font-size: 1.5em;
  border-radius: 10px;
  box-shadow: 0 0 10px #333;
  z-index: 10000;
  animation: shake 1s infinite;
}

/* Review list */
#bgt-review-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

#bgt-review-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #ccc;
}

.text-correct {
  color: #28a745;
  font-weight: bold;
}

.text-wrong {
  color: #dc3545;
  font-weight: bold;
}

.animated { animation-duration: 1s; animation-fill-mode: both; }
.bounceIn { animation-name: bounceIn; }

.animated-border {
  border: 6px solid transparent;
  border-radius: 25px;
  padding: 25px;
  position: relative;
  background-clip: padding-box;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
  animation: borderGlow 4s linear infinite;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(60deg, #fcbde7, #f4d5f7, #f7efd5, #f7bce4);
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite;
  filter: blur(8px);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 105, 180, 0.4); }
  50% { box-shadow: 0 0 30px rgba(255, 105, 180, 0.7); }
}

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

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes glowBorder {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 105, 180, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 105, 180, 0.5); }
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes pulseBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes tada {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Media Queries */
@media (max-width: 600px) {
  .bgt-letter-box { font-size: 1em; }
  .bgt-letter-box { width: 100%; }
	.glitter-text { font-size: 1.8em; }
}
@media (max-width: 480px) {
	#bgt-social-share a { min-width: 90px; font-size: 14px; padding: 8px; }
}
@media (max-width: 768px) {
  body, #bgt-game, .game-wrapper, input, button, h1, h2, h3, h4, h5, h6, p, li, label {
    font-family: 'Arial', 'Helvetica Neue', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5;
    letter-spacing: 0.3px;
  }
}
@media only screen and (max-width: 600px) {
  .reveal-btn {
    width: 100%;
  }
  .reveal-btn {
    font-size: 16px;
  }
  #gender-form label {
	min-width: 65%;	
	}
}