@font-face {
  font-family: 'Bubblegum Sans';
  src: url('assets/fonts/BubblegumSans-Regular.woff2') format('woff2'),
       url('assets/fonts/BubblegumSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Bubblegum Sans', sans-serif;
  margin: 0;
  padding: 15px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
  font-size: 18px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.5s ease;
}

body.sunshine {
  background: linear-gradient(135deg, #ffeb3b 0%, #ffd54f 100%);
  color: #333;
}
body.starrynight {
  background: linear-gradient(135deg, #1a237e 0%, #3f51b5 100%);
  color: #fff;
}
body.forest {
  background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
  color: #fff;
}

.container {
  max-width: 100%;
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  text-align: center;
}

h1 {
  font-size: 36px;
  color: #6200ea;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in;
}

h2 {
  font-size: 24px;
  color: #ff4081;
  margin: 15px 0;
}

button {
  padding: 15px 30px;
  margin: 10px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(45deg, #6200ea, #ab47bc);
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

button:active {
  animation: bounce 0.2s;
}

input, select {
  padding: 12px;
  margin: 10px;
  border-radius: 15px;
  border: 2px solid #ab47bc;
  font-size: 16px;
  width: calc(100% - 30px);
  max-width: 300px;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#voteSelect {
  padding: 12px;
  margin: 10px;
  border-radius: 15px;
  border: 2px solid #ff4081;
  font-size: 16px;
  width: calc(100% - 30px);
  max-width: 300px;
}

#wordContainer {
  position: relative;
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  height: 200px;
}

#wordCover {
  width: 120px;
  height: 120px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: transform 0.3s ease;
  cursor: grab;
  user-select: none;
}

#wordCover:active {
  cursor: grabbing;
}

#word, #hint {
  font-size: 28px;
  font-weight: bold;
  color: #ff4081;
  margin: 10px 0;
  animation: fadeIn 0.5s ease-in;
  position: relative;
  z-index: 0;
}

#discussion-icon {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  display: block;
}

#discussionTimer, #discussionTimerVote {
  font-size: 24px;
  font-weight: bold;
  color: #ff4081;
  margin: 20px 0;
}

#scores {
  list-style: none;
  padding: 0;
}

#scores li {
  font-size: 20px;
  margin: 10px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  button, input, select, #voteSelect { font-size: 14px; padding: 10px; }
  #wordCover { width: 80px; height: 80px; }
  #discussion-icon { width: 80px; height: 80px; }
  #word, #hint, #discussionTimer, #discussionTimerVote { font-size: 20px; }
  #wordContainer { height: 150px; }
}