.web-fog {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: min(46%, 360px);
  opacity: 0;
  pointer-events: none;
  mask-image: linear-gradient(transparent, #000 70%);
}
.web-fog[data-fog-ready="true"] {
  opacity: 0.75;
}
.web-fog > canvas {
  display: block;
}
.phone > .app-body,
.phone > .nav-capsule {
  z-index: 1;
}
.phone > .app-topbar {
  z-index: 80;
}
.phone > .app-body {
  background: transparent;
}
.shop-screen,
.quest-hub,
.settings-screen {
  background: transparent;
}
.settings-title {
  margin: 16px 20px 22px;
  color: var(--text-1);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.settings-account {
  display: flex;
  align-items: center;
  gap: 15px;
  width: calc(100% - 32px);
  min-height: 86px;
  margin: 0 16px 25px;
  padding: 15px 17px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
}
.settings-account > span {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.settings-account strong {
  overflow: hidden;
  font-size: 19px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-account small {
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-account > svg {
  color: var(--text-4);
  flex-shrink: 0;
}
.settings-menu {
  display: grid;
  gap: 24px;
  margin: 0 16px;
  padding: 0;
}
.settings-group {
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
}
.settings-menu button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  padding: 8px 15px;
  border: 0;
  background: transparent;
  color: var(--text-1);
  font: 450 14px var(--font);
  text-align: left;
  cursor: pointer;
}
.settings-menu button > span {
  flex: 1;
}
.settings-menu button > svg {
  flex-shrink: 0;
  color: var(--text-4);
}
.settings-menu button:active,
.settings-account:active {
  background: var(--bg-3);
}
.settings-menu-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #55565c;
  color: white;
}
.settings-menu-icon--appearance {
  background: #6578ac;
}
.settings-menu-icon--notifications {
  background: #c64242;
}
.settings-menu-icon--security {
  background: #4c81bb;
}
.settings-menu-icon--locale {
  background: #65676c;
}
.settings-menu-icon--streams {
  background: #8b63a8;
}
.settings-heading {
  margin: 20px 20px 6px;
  color: var(--text-1);
  font-size: 22px;
  font-weight: 700;
}
.settings-section__title {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
}
.settings-section__inset {
  padding: 0 16px;
}
.settings-section__card {
  border-radius: 12px;
  box-shadow: none;
}
.settings-switch {
  width: 45px !important;
  height: 27px !important;
  background: #414145 !important;
  box-shadow: none;
}
.settings-switch.active {
  background: #34b86b !important;
}
.settings-switch__thumb {
  width: 23px !important;
  height: 23px !important;
}
.settings-switch.active .settings-switch__thumb {
  transform: translateX(18px);
}
.background-settings {
  padding: 14px;
}
.background-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.background-actions .btn {
  flex: 1 1 130px;
  min-height: 42px;
  border-radius: 10px;
  font-size: 12px;
}
.settings-toggle:focus-visible,
.settings-menu button:focus-visible,
.settings-account:focus-visible {
  outline: 2px solid var(--text-2);
  outline-offset: -2px;
}
.pet-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
}
.pet-choices > button {
  display: flex;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 2px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  font: 500 11px var(--font);
  cursor: pointer;
}
.pet-choices > button[aria-pressed="true"] {
  border-color: var(--line-2);
  background: var(--bg-3);
  color: var(--text-1);
}
.pet-choices > button:disabled {
  opacity: 0.5;
  cursor: default;
}
.pet-choice-art {
  display: grid;
  width: 40px;
  height: 58px;
  place-items: center;
  pointer-events: none;
}
.pet-choice-art > canvas {
  width: 40px;
  height: 58px;
}
.tabbar .app-pet {
  position: absolute;
  z-index: 3;
  top: -70px;
  left: 20px;
  display: block;
  width: 56px;
  height: 81px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.tabbar .app-pet[data-dragging] {
  cursor: grabbing;
}
.tabbar .app-pet:focus-visible {
  outline: 2px solid var(--text-3);
  outline-offset: 2px;
}
.app-pet > .nav-pet {
  width: 100%;
  height: 100%;
  pointer-events: none;
  cursor: default;
}
.pet-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}
.pet-status > span:last-child {
  min-width: 0;
}
.pet-status-art {
  position: relative;
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  pointer-events: none;
}
.pet-status-art > .nav-pet {
  width: 30px;
  height: 30px;
}
.pet-status-art canvas {
  width: 30px;
  height: 43px;
}
.settings-heading {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-heading > small {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 400;
}

.match-cancel-reason {
  margin: 5px 0 0;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.match-detail-hero .match-cancel-reason {
  font-size: 12px;
}
