body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: #eef4fb;
  min-height: 100vh;
  color: #222;
}

.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(120deg, #e2f6fa 0%, #dbe6f7 30%, #aeeafc 100%);
  opacity: .96;
  filter: blur(14px) saturate(1.13);
}

.container,
.container.glass {
  max-width: 430px;
  margin: 2em auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 19px;
  box-shadow: 0 8px 36px #53b5e227, 0 1.5px 4px #20507908;
  border: 2px solid rgba(184, 200, 238, .15);
  padding: 1.8em 1.3em 1.3em 1.3em;
  display: flex;
  flex-direction: column;
}

@media (max-width:600px) {
  .container {
    max-width: 97vw;
    padding: 1.1em 2.5vw;
  }
}

h2,
h3 {
  text-align: center;
  color: #49a5de;
  margin: 0.1em 0 0.8em;
  font-weight: 700;
}

.players-count.glass-box,
.game-timer {
  background: rgba(255, 255, 255, .42);
  border-radius: 16px;
  box-shadow: 0 2px 13px #aadafa19;
  border: 1.3px solid #aed9ff36;
  padding: .7em .4em;
  margin-bottom: .7em;
  font-size: 1.09em;
}

.players {
  list-style: none;
  padding: 0;
  margin: 1em 0 0 0;
}

.players li {
  background: rgba(255, 255, 255, 0.53);
  margin: 0.16em 0;
  padding: 0.8em 0.6em;
  border-radius: 1em;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px #6aadf22e;
  transition: box-shadow 0.18s;
  font-size: 1.09em;
}

.suspect-form {
  display: inline-block;
  margin-left: .4em;
}

.sus-badge {
  background: #ef4747de;
  color: #fff;
  border-radius: 9px;
  padding: 1.1px 8px 0 8px;
  font-weight: bold;
  margin-left: 0.3em;
  font-size: 0.96em;
}

.role-card.glass-card {
  margin: 2em auto 1.3em;
  padding: 1.9em 1em 1.2em 1em;
  font-size: 1.19em;
  text-align: center;
  font-weight: 500;
  border: 2px solid #4B8CFF44;
  background: rgba(255, 255, 255, .25);
  border-radius: 18px;
}

.primary-btn,
.primary-btn.small-back,
.back-btn {
  background: #4b8cff;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  padding: 1.04em 2em;
  font-size: 1.15em;
  box-shadow: 0 2px 9px #9cdbef22;
  text-align: center;
  display: inline-block;
  margin: 0.6em auto 0 auto;
  transition: background .18s, box-shadow .1s;
  text-decoration: none !important;
  cursor: pointer;
  min-height: unset !important;
}

.primary-btn:hover,
.back-btn:hover {
  background: #3571e6;
  color: #fff !important;
}

.primary-btn.small-back {
  padding: 0.5em 2em !important;
  font-size: 1em !important;
}

.edit-btn {
  font-size: 1.45em !important;
  padding: .49em 1.10em !important;
  margin: 0 .13em;
  background: #9be4ff;
  color: #2060ad;
  border: 2px solid #54c8fc;
  font-weight: 600;
  box-shadow: 0 1px 5px #78b5e322;
  border-radius: 50%;
  cursor: grab;
}

.edit-btn:hover {
  background: #54c8fc;
  color: white;
}

/* имя максимально широкое */
.edit-input {
  font-size: 1.13em;
  padding: .88em .56em;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 80px;
  margin-right: .18em;
  border: 1.1px solid #a6caff;
  background: #f6fbff;
  box-sizing: border-box;
  transition: border-color .17s;
}

.edit-input:focus {
  border-color: #4b8cff;
}

/* ширина поля для числа шпионов */
.num-input {
  font-size: 1.11em;
  padding: .7em .75em;
  border-radius: 10px;
  width: 110px;
  min-width: 80px;
  max-width: 130px;
  margin-bottom: 0;
  box-sizing: border-box;
  text-align: center;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9em;
  gap: .7em;
}

.form-label,
.checkbox-label,
label {
  font-size: 1.10em;
  font-weight: 500;
  color: #244a79;
  line-height: 1.25;
}

.checkbox-label {
  font-size: 1.10em;
  font-weight: 500;
  margin: .32em 0;
  display: flex;
  align-items: center;
}

.checkbox-label input[type="checkbox"] {
  margin-right: .5em;
}

.drag-handle {
  color: #2b4e6a;
  opacity: .45;
  margin-left: .7em;
  transition: opacity .13s;
}

.draggable-row:active .drag-handle,
.draggable-row:focus .drag-handle,
.draggable-row.drag-over .drag-handle {
  opacity: 1;
  color: #217aff;
}

.draggable-row.drag-over {
  box-shadow: 0 0 0 3px #43a3ee33 inset;
}

input,
button,
select {
  font-family: inherit;
}

input[type="text"],
input[type="number"],
select {
  font-size: 1.10em;
  outline: none;
  border: 1.3px solid #b8d8f2;
  background: #fafcff;
}

@media (max-width:600px) {
  .container {
    max-width: 97vw;
    padding: 1.1em 1.7vw;
  }

  .primary-btn,
  .primary-btn.small-back {
    font-size: 1em;
    padding: 1em 1.15em;
  }

  .edit-input {
    width: 97vw;
    max-width: 97vw;
  }

  .num-input {
    max-width: 90px;
  }
}

a.primary-btn,
a.primary-btn.small-back,
a.back-btn {
  text-decoration: none !important;
}