/* Signaling UI: intro/home, role badges, numbered steps, multi-peer slots,
   status messages. Shared across morpion / pong / worms. */

.intro {
  text-align: center;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.55;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 32px 0 24px;
}
.home-actions button {
  padding: 24px 16px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.demo-row.single { grid-template-columns: 1fr; }
.demo-row button {
  padding: 10px 14px;
  font-size: 11px;
  border-color: #888;
  color: #444;
  letter-spacing: 0.06em;
}
.demo-row button:hover {
  background: black;
  color: white;
  border-color: black;
}
.demo-label {
  text-align: center;
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 6px 0 4px;
}

.help {
  font-size: 11px;
  color: #666;
  text-align: center;
  margin: 16px 0;
  line-height: 1.6;
}

.role {
  display: inline-block;
  border: 1px solid black;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.step { margin-bottom: 0; }
.step-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: black;
}

.slot {
  border: 1px solid #ccc;
  padding: 14px;
  margin-bottom: 14px;
}
.slot.connected { border-color: black; border-width: 2px; }
.slot-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.slot-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.slot-status {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #666;
  text-transform: uppercase;
}
.slot.connected .slot-status { color: black; font-weight: 700; }
.slot.failed .slot-status { color: black; font-weight: 700; }

.status {
  text-align: center;
  font-size: 13px;
  margin: 12px 0;
  min-height: 18px;
  letter-spacing: 0.02em;
}
.status.your-turn { font-weight: 700; }
.status.error { color: black; font-weight: 700; }

.actions-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
