/* ------------------------------------------------------------------ SOCIAL */
body {
  background-color: #141a20;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}

.start {
  align-items: flex-start;
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: auto;
  padding: 10px;
  width: 100%;
}
.start[hidden] {
  display: none;
}
.start__block {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #333333;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 40px;
}
.start__block-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.start__blocks {
  display: flex;
  gap: 20px;
}
.start__customize {
  align-items: center;
  display: flex;
  gap: 10px;
}
.start__fields {
  align-self: stretch;
  flex: 1;
  min-width: 0;
}
.start__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto;
  max-width: 900px;
  width: 100%;
}
.start__hint {
  color: #333333;
  font-size: 12px;
}
.start__hint--touch {
  display: none;
}
@media (pointer: coarse) {
  .start__hint--keyboard {
    display: none;
  }
  .start__hint--touch {
    display: block;
  }
}
@media (max-width: 768px) {
  .start__customize {
    flex-direction: column-reverse;
  }
}
@media (max-width: 1024px) {
  .start__blocks {
    flex-direction: column;
  }
}
.start__preview {
  display: block;
  flex: none;
  height: 180px;
  width: 180px;
}
.start__title {
  color: #ffffff;
  font-family: "Bungee", sans-serif;
  font-size: 32px;
  margin-bottom: 10px;
  text-align: center;
}

.game {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 10px;
  position: relative;
  touch-action: none;
  user-select: none;
  width: 100%;
}
.game[hidden] {
  display: none;
}
.game__canvas {
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: block;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  width: auto;
}
.game__chat {
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 2px;
  bottom: 10px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  left: 10px;
  max-height: 240px;
  padding: 5px;
  position: absolute;
  width: 260px;
  z-index: 7;
}
.game__chat[hidden] {
  display: none;
}
.game__chat-badge {
  align-items: center;
  background-color: #e15d80;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: 10px;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  position: absolute;
  right: -2px;
  top: -2px;
  width: 20px;
}
.game__chat-badge[hidden] {
  display: none;
}
.game__chat-close {
  align-items: center;
  background-color: transparent;
  border-color: transparent;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  font-size: 16px;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}
.game__chat-close:focus {
  box-shadow: 0 0 0 4px rgba(82, 34, 107, 0.5);
}
.game__chat-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}
.game__chat-field {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  flex-grow: 1;
  height: 25px;
  min-width: 0;
}
.game__chat-field::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.game__chat-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.game__chat-input {
  align-items: center;
  display: flex;
  gap: 2px;
}
.game__chat-message {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0;
}
.game__chat-messages {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 2px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}
.game__chat-name {
  color: #f1c50e;
  font-size: 10px;
  font-weight: bold;
}
.game__chat-send {
  flex-shrink: 0;
  height: 25px;
}
.game__chat-text {
  color: #ffffff;
  font-size: 12px;
  word-break: break-word;
}
.game__chat-title {
  font-family: "Bungee", sans-serif;
  font-size: 12px;
  font-weight: bold;
}
.game__chat-toggle {
  bottom: 10px;
  left: 10px;
  position: absolute;
  z-index: 7;
}
.game__chat-toggle[hidden] {
  display: none;
}
.game__clock {
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  left: 10px;
  padding: 5px 10px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  top: 10px;
}
.game__clock[hidden] {
  display: none;
}
.game__clock-count {
  color: #f1c50e;
  font-size: 10px;
}
.game__clock-level {
  color: #f5f6f6;
  font-size: 10px;
  text-transform: uppercase;
}
.game__clock-time {
  font-size: 12px;
  font-weight: bold;
}
.game__craft-group {
  color: #f5f6f6;
  font-size: 10px;
  text-transform: uppercase;
}
.game__grenade {
  bottom: 130px;
  position: absolute;
  right: 10px;
}
.game__grenade[hidden] {
  display: none;
}
.game__house {
  bottom: 10px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
.game__house[hidden] {
  display: none;
}
.game__inventory-detail {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 5px;
}
.game__inventory-empty {
  color: #f5f6f6;
  font-size: 12px;
}
.game__inventory-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(auto-fill, minmax(60px, 60px));
  justify-content: start;
}
.game__inventory-slot {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 2px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  height: 60px;
  justify-content: center;
  padding: 2px;
  position: relative;
  width: 60px;
}
.game__inventory-slot:focus {
  box-shadow: 0 0 0 4px rgba(82, 34, 107, 0.5);
}
.game__inventory-slot--empty {
  background-color: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  cursor: default;
}
.game__inventory-slot--selected {
  box-shadow: inset 0 0 0 2px #f1c50e;
}
.game__inventory-slot .game__item-quantity {
  bottom: 2px;
  position: absolute;
  right: 2px;
}
.game__item {
  align-items: center;
  display: flex;
  gap: 5px;
}
.game__item-action {
  flex-shrink: 0;
}
.game__item-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 2px;
}
.game__item-cost {
  align-items: center;
  color: #f5f6f6;
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 2px;
}
.game__item-cost-item {
  align-items: center;
  display: flex;
  gap: 2px;
}
.game__item-cost-item--missing {
  color: #e15d80;
}
.game__item-cost-item .game__item-icon {
  height: 50px;
  width: 50px;
}
.game__item-description {
  color: #f5f6f6;
  font-size: 10px;
}
.game__item-durability {
  color: #f1c50e;
  font-size: 10px;
}
.game__item-icon {
  fill: none;
  flex-shrink: 0;
  height: 50px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 50px;
}
.game__item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 2px;
  min-width: 0;
}
.game__item-name {
  font-size: 12px;
}
.game__item-quantity {
  color: #f1c50e;
  font-size: 12px;
  font-weight: bold;
}
.game__joystick {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  height: 120px;
  justify-content: center;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%);
  width: 120px;
}
.game__joystick[hidden] {
  display: none;
}
.game__joystick-knob {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  height: 48px;
  width: 48px;
}
.game__menu {
  align-items: center;
  bottom: 60px;
  display: flex;
  flex-direction: row;
  gap: 5px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
.game__menu[hidden] {
  display: none;
}
.game__menu-button {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.55);
  border: 0;
  color: #ffffff;
  display: flex;
  height: 60px;
  justify-content: center;
  width: 60px;
}
.game__menu-button[hidden] {
  display: none;
}
.game__menu-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.game__menu-button:focus {
  box-shadow: 0 0 0 4px rgba(82, 34, 107, 0.5);
}
.game__menu-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.game__menu-icon {
  fill: none;
  height: 50px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 50px;
}
.game__minimap {
  bottom: 10px;
  height: 120px;
  pointer-events: none;
  position: absolute;
  right: 10px;
  width: 120px;
}
.game__minimap[hidden] {
  display: none;
}
.game__minimap-canvas {
  border-radius: 2px;
  display: block;
  height: 100%;
  width: 100%;
}
.game__modal {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  padding: 10px;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 5;
}
.game__modal[hidden] {
  display: none;
}
.game__modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
}
.game__modal-close {
  align-items: center;
  background-color: transparent;
  border-color: transparent;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  font-size: 16px;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}
.game__modal-close:focus {
  box-shadow: 0 0 0 4px rgba(82, 34, 107, 0.5);
}
.game__modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}
.game__modal-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.game__modal-column-header {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: space-between;
}
.game__modal-column-title {
  color: #f5f6f6;
  font-size: 10px;
  text-transform: uppercase;
}
.game__modal-columns {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr;
}
.game__modal-dialog {
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70%;
  max-width: 420px;
  padding: 40px;
  width: 100%;
}
.game__modal-dialog[hidden] {
  display: none;
}
.game__modal-dialog--wide {
  max-width: 720px;
}
.game__modal-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.game__modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game__modal-meta {
  color: #f5f6f6;
  font-size: 10px;
  text-transform: uppercase;
}
.game__modal-title {
  font-family: "Bungee", sans-serif;
  font-size: 24px;
  font-weight: bold;
}
.game__notification {
  align-items: center;
  background-color: #3f444a;
  border-left: 5px solid #f5f6f6;
  border-radius: 2px;
  color: #f5f6f6;
  display: flex;
  gap: 5px;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 10px;
}
.game__notification--danger {
  background-color: #2c1924;
  border-left-color: #e15d80;
  color: #e15d80;
}
.game__notification--info {
  background-color: #171935;
  border-left-color: #7d72e5;
  color: #7d72e5;
}
.game__notification--success {
  background-color: #314633;
  border-left-color: #88ca6a;
  color: #88ca6a;
}
.game__notification-body {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 5px;
}
.game__notification-close {
  align-items: center;
  background-color: transparent;
  border-color: transparent;
  color: #f5f6f6;
  display: flex;
  flex-shrink: 0;
  font-size: 16px;
  height: 20px;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  width: 20px;
}
.game__notification-close:focus {
  box-shadow: 0 0 0 4px rgba(82, 34, 107, 0.5);
}
.game__notification-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.game__notification-icon {
  fill: none;
  height: 50px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 50px;
}
.game__notification-item {
  align-items: center;
  display: flex;
  gap: 5px;
}
.game__notification-message {
  color: #ffffff;
  font-size: 12px;
}
.game__notification-name {
  color: #ffffff;
  font-size: 12px;
}
.game__notification-quantity {
  font-size: 12px;
  font-weight: bold;
}
.game__notifications {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  z-index: 7;
}
.game__notifications[hidden] {
  display: none;
}
.game__ranking {
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  padding: 5px 10px;
  width: 200px;
}
.game__ranking[hidden] {
  display: none;
}
.game__ranking-item {
  align-items: center;
  display: flex;
  gap: 5px;
}
.game__ranking-item--self {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 2px;
  padding-top: 2px;
}
.game__ranking-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.game__ranking-rank {
  color: #ffd700;
}
.game__ranking-name {
  flex-grow: 1;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game__ranking-position {
  color: #f5f6f6;
  font-size: 12px;
  text-align: right;
  width: 20px;
}
.game__ranking-score {
  color: #f1c50e;
  flex-shrink: 0;
  font-size: 12px;
  text-align: right;
  width: 20px;
}
.game__ranking-title {
  color: #f5f6f6;
  font-family: "Bungee", sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}
.game__revive {
  left: 50%;
  position: absolute;
  top: 60%;
  transform: translateX(-50%);
}
.game__revive[hidden] {
  display: none;
}
.game__sidebar {
  align-items: flex-end;
  bottom: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100% - 10px * 2);
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 300px;
}
.game__vehicle {
  bottom: 10px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
.game__vehicle[hidden] {
  display: none;
}
.game__transition {
  align-items: center;
  animation: game-transition-in 0.4s ease both;
  background-color: #141a20;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
  left: 0;
  padding: 10px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 100%;
  z-index: 9;
}
.game__transition[hidden] {
  display: none;
}
.game__transition--out {
  animation: game-transition-out 0.4s ease both;
}
.game__transition-description {
  color: #f5f6f6;
  font-size: 16px;
  max-width: 300px;
}
.game__transition-title {
  font-family: "Bungee", sans-serif;
  font-size: 24px;
  font-weight: bold;
}
@media (max-width: 768px) {
  .game__chat {
    max-height: 180px;
    padding: 2px;
    width: 220px;
  }
  .game__chat-messages {
    max-height: 100px;
  }
  .game__chat-toggle {
    bottom: 5px;
    left: 5px;
  }
  .game__clock {
    left: 5px;
    padding: 2px 5px;
    top: 5px;
  }
  .game__grenade {
    bottom: 105px;
    right: 5px;
  }
  .game__house {
    bottom: 5px;
  }
  .game__inventory-slot {
    height: 44px;
    width: 44px;
  }
  .game__item-cost-item .game__item-icon {
    height: 24px;
    width: 24px;
  }
  .game__item-icon {
    height: 32px;
    width: 32px;
  }
  .game__menu-button {
    height: 44px;
    width: 44px;
  }
  .game__menu-icon {
    height: 32px;
    width: 32px;
  }
  .game__minimap {
    bottom: 5px;
    height: 100px;
    right: 5px;
    width: 100px;
  }
  .game__modal {
    padding: 20px;
  }
  .game__modal-columns {
    grid-template-columns: 1fr;
  }
  .game__notification-icon {
    height: 32px;
    width: 32px;
  }
  .game__ranking {
    padding: 2px 5px;
    width: 160px;
  }
  .game__revive {
    top: 65%;
  }
  .game__sidebar {
    bottom: 125px;
    max-width: calc(100% - 5px * 2);
    right: 5px;
    top: 5px;
    width: 240px;
  }
  .game__vehicle {
    bottom: 5px;
  }
}

@keyframes game-transition-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes game-transition-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}