.screen {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
}

.play-logo {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

/* Join */
#join-form {
  width: 100%;
  max-width: 360px;
}

#join-form .form-group {
  margin-bottom: 1rem;
}

#join-form input {
  font-size: 1.3rem;
  text-align: center;
  padding: 1rem;
}

#input-code {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 8px;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.avatar-option {
  font-size: 2rem;
  padding: 0.75rem;
  text-align: center;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.avatar-option:hover { border-color: #555; }
.avatar-option.selected {
  border-color: var(--accent);
  background: rgba(0, 255, 255, 0.12);
}

.btn-join {
  width: 100%;
  font-size: 1.3rem;
  padding: 1rem;
}

.error-text {
  color: var(--red);
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* Waiting */
.waiting-content {
  text-align: center;
}

.my-avatar {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.waiting-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pulse-text {
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

/* Answer */
#screen-answer {
  padding: 0.75rem;
  gap: 0.75rem;
}

.answer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.answer-timer {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  flex: 1;
}

.answer-btn {
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.answer-btn:active {
  transform: scale(0.95);
  filter: brightness(0.85);
}

.answer-btn.selected {
  opacity: 0.5;
}

/* Answered */
.answered-content {
  text-align: center;
}

.check-icon {
  font-size: 4rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  animation: slideUp 0.3s ease;
}

.answered-content p {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Result */
.result-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: slideUp 0.4s ease;
}

.result-text {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.result-details {
  display: flex;
  gap: 2rem;
}

.result-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
}

/* Final */
.final-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.final-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.big-rank {
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.final-score {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 2rem;
}

/* Disconnected */
#screen-disconnected {
  text-align: center;
}
#screen-disconnected h2 { margin-bottom: 1.5rem; }
