/* Modern UI Design */
:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #3B82F6;
  --accent: #10B981;
  --background: #F9FAFB;
  --card: #FFFFFF;
  --text: #111827;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.screen {
  width: 100%;
  max-width: 800px;
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .screen {
    padding: 1.5rem;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.game-area {
  margin: 2rem 0;
}

.input-group {
  margin-bottom: 1.5rem;
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.room-code {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  margin: 1.5rem 0;
  letter-spacing: 0.5rem;
}

.player-list {
  margin: 1.5rem 0;
}

.player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--background);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.kick-btn {
  padding: 0.5rem 1rem;
  background: #EF4444;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.kick-btn:hover {
  background: #DC2626;
}

.round-info {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.letters {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  margin: 1.5rem 0;
  letter-spacing: 1rem;
}

.timer {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  margin: 1rem 0;
}

.submission-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.submission-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.vote-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.vote-button:hover {
  background: #059669;
  transform: translateY(-1px);
}

.winner {
  border: 2px solid var(--accent);
}

.winner-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.scores {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 0.5rem;
}

.waiting-message {
  text-align: center;
  color: var(--text-light);
  margin: 2rem 0;
}

.waiting-icon {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.acronym-prompt {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: center;
}

.hidden {
  display: none;
}