* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0d1117;
  color: #c9d1d9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #30363d;
}

h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }

.icon-btn {
  background: none;
  border: none;
  color: #c9d1d9;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.icon-btn:hover { color: #fff; }

.lobby {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.participants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.card.po { border-color: #58a6ff; }

.card.me { box-shadow: 0 0 0 2px #238636; }

.name {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  word-break: break-word;
  color: #8b949e;
}

.estimate {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.actions button {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}

.actions button:hover { background: #30363d; }

.actions button.selected {
  background: #238636;
  border-color: #238636;
  color: #fff;
}

.actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reveal-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: #1f6feb;
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.reveal-btn:hover { background: #388bfd; }

.reveal-btn:disabled {
  background: #21262d;
  color: #8b949e;
  cursor: not-allowed;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
}

.modal-content h2 { margin-top: 0; margin-bottom: 1rem; font-size: 1.25rem; }

.modal-content label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #8b949e;
}

.modal-content input[type="text"],
.modal-content input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  padding: 0.5rem;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 4px;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  color: #c9d1d9 !important;
}

.checkbox-label input { margin: 0; }

.modal-content button {
  width: 100%;
  padding: 0.75rem;
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}

.modal-content button:hover { background: #30363d; }

.rate-limit-banner {
  background: #da3633;
  color: #fff;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}
