.RosterList {
  color: white;
  height: 120px;
  width: 100%;
  overflow-y:scroll;
  white-space:nowrap;
}

.Roster {
  display: inline-block;
  text-align: left;
  padding:10px;
  margin:5px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  vertical-align: top;
}

.Roster .name {
  display: inline-block;
  text-align: left;
  font-weight: 600;
}

.Roster .characters {
  display: block;
  clear: both;
  margin-top:10px;
}

.Roster.mini {
  margin: 0px;
  padding: 5px;
}

.Roster .characters .CharacterIcon {
  width: 50px;
  height: 50px;
}

.Roster.mini .characters{
  margin: 0px;  
}

.Roster.mini .characters .CharacterIcon {
  width: 46px;
  height: 46px;
}

.RosterList .Roster button {
  float: right;
  color: white;
  border: none;
  border-radius: 4px;
  height: 20px;
  width: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  padding:0px;
}

.Roster span {
  margin-right:10px;
  padding-top:3px;
}

.RosterList .Roster .remove {
  background-color: #dc3545;
}

.RosterList .Roster .remove:hover {
  background-color: #c82333;
}

.RosterList .Roster .add {
  background-color: #28a745;
}

.RosterList .Roster .add:hover {
  background-color: #218838;
}

/* Setup's rosters open their deck when clicked (not on their X / +) */
.Roster.viewsDeck {
  cursor: pointer;
}

.Roster.viewsDeck:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

/* Game setup: every setting in one row along the top (wrapping on a small screen), Finish Setup at its end, then the
   rosters */
.ActionBar .GameSetup {
  padding: 4px;
  text-align: left;
}

.ActionBar .GameSetup h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.ActionBar .GameSetup .hint {
  font-size: 13px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.6);
}

/* The settings read a size up from the rest of the action bar: hints beside them too */
.ActionBar .GameSetup .settings .hint {
  font-size: 16px;
}

.ActionBar .GameSetup .settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.ActionBar .GameSetup label,
.ActionBar .GameSetup .fieldName {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.ActionBar .GameSetup .fieldName {
  cursor: default;
}

/* Text and number fields: dark, square-ish, not the site's rounded white input half */
.ActionBar .GameSetup input[type="text"],
.ActionBar .GameSetup input[type="number"] {
  padding: 6px 10px;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
}

.ActionBar .GameSetup input[type="text"]:focus,
.ActionBar .GameSetup input[type="number"]:focus {
  border-color: #9370db;
}

.ActionBar .GameSetup .gameName input {
  width: 220px;
}

.ActionBar .GameSetup .gameCode {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ActionBar .GameSetup .gameCode input {
  width: 100px;
  font-family: monospace;
  font-size: 19px;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: text;
}

.ActionBar .GameSetup .settings button {
  margin: 0;
  padding: 7px 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
}

/* Beats the action bar's checkbox size, and a flex label would squeeze it */
.ActionBar .GameSetup input.switch {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  margin: 0;
}

.ActionBar .GameSetup .rosterRerolls input {
  width: 60px;
}

.ActionBar .GameSetup .movementMultiplier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ActionBar .GameSetup .movementMultiplier input {
  width: 80px;
}

/* The way on to rolling rosters, the last setting, sized like the others' buttons: green once I'm ready */
.ActionBar .GameSetup button.readyButton.isReady {
  background: #2e9e5b;
}

.ActionBar .GameSetup .rostersHeading {
  margin-top: 16px;
}

.ActionBar .GameSetup .rostersHeading .count {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 10px;
  background: #764ba2;
  color: white;
  letter-spacing: 0;
}

/* Setup's rosters: each list one row, scrolling sideways when there are more than fit */
.ActionBar .GameSetup .RosterList {
  display: flex;
  gap: 8px;
  height: auto;
  overflow-x: auto;
  overscroll-behavior: none; /* a sideways scroll past its end isn't the browser's back swipe */
  padding-bottom: 4px;
}

.ActionBar .GameSetup .RosterList .Roster {
  flex-shrink: 0;
  margin: 0;
}

.ActionBar .CharacterSelect {
  text-align: center;
  padding: 5px;
  font-size: 16px;
  font-weight: 400;
}

.ActionBar .CharacterSelect .rollCharacter {
  display: inline-block;
}

.ActionBar .CharacterSelect button {
  display:inline-block;
  vertical-align: top;
  margin: 10px;
  padding: 21px 30px;
  border-radius:10px;
  font-size: 28px;
}

.ActionBar .CharacterSelect button div {
  font-size: 16px;
}

.ActionBar .CharacterSelect .acceptRoster {
  font-size: 28px;
  padding: 30px 30px;
  background-color: #28a745;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.ActionBar .CharacterSelect .acceptRoster:hover {
  background-color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* A ? that explains a setting on hover (its title) */
.ActionBar .GameSetup .help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: bold;
  cursor: help;
  opacity: 0.7;
}
